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
Â
⇒Introduction of JSON Schema
⇒⇒JSON Tutorials
2017-08-25, 1251👍, 0💬
Popular Posts:
Where to find tutorials on Microsoft Azure services? Here is a large collection of tutorials to answ...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text ...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
What Is session_register() in PHP? session_register() is old function that registers global variable...