Root level property
JSON schema example demonstrating a schema with a string property directly at the root level
$id | root-level-property.yml |
$schema | http://json-schema.org/draft-07/schema# |
Example
Example
$id |
root-level-property.yml |
Title |
Root level property |
Description |
JSON schema example demonstrating a schema with a string property directly at the root level |
Type | String |
Min Length |
1 |
Max Length |
100 |
Examples |
Value oneValue two |
Schema
{
"$id": "root-level-property.yml",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Root level property",
"description": "JSON schema example demonstrating a schema with a string property directly at the root level",
"type": "string",
"examples": [
"Value one",
"Value two"
],
"minLength": 1,
"maxLength": 100
}