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, 1426🔥, 0💬
Popular Posts:
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
Can Multiple Paragraphs Be Included in a List Item? Yes. You can include multiple paragraphs in a si...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...
How to run PowerShell Commands in Dockerfile to change Windows Docker images? When building a new Wi...