Skip to the content.

Root level property

JSON schema example demonstrating a schema with a string property directly at the root level

$idroot-level-property.yml
$schemahttp://json-schema.org/draft-07/schema#

Example

"Value one"

Example

"Value two"

$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
TypeString
Min Length 1
Max Length 100
Examples
  • Value one
  • Value 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
    }