Tools, FAQ, Tutorials:
Multiple JSON Schema Validation Keywords
How multiple Validation Keywords work in JSON Schema?
✍: FYIcenter.com
Multiple Validation Keywords work in JSON Schema with the "AND" logic. The order of validation keywords is not important. In other words, all of them are applied individually to the JSON instance based their specified conditions.
For example, the following schema requires the JSON instance must a JSON String AND match the given regular expression pattern:
JSON Schema: { "pattern": ".*@.*", "type": "string", "minLength": 15 } {"enum": ["YES", "NO"]} Valid JSON instance: help@fyicenter.com Invalid JSON instance: "to@bbc.com" Invalid JSON instance: 3.1415926535897932384626433
⇒ JSON Type Definitions and References
2017-08-25, 1443🔥, 0💬
Popular Posts:
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How To Set session.gc_divisor Properly in PHP? As you know that session.gc_divisor is the frequency ...
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...
How to build a test service operation to dump everything from the "context.Request" object in the re...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...