Skip to the content.

Person

JSON schema example for a person entity

$idexamples-with-meta.yml
$schemahttp://json-schema.org/draft-07/schema#

Properties

NameType
nameString

Example

Title for the example

Description for the example

{
    "name": "Rhys"
}

Example

Title for the second example

{
    "name": "Sarah"
}

Example

{
    "name": "Charlie"
}

name

Title Name
Description The name of a person
TypeString
Required Yes
Examples
  • David

  • Schema

    {
        "$id": "examples-with-meta.yml",
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "Person",
        "description": "JSON schema example for a person entity",
        "type": "object",
        "examples": [
            {
                "meta:title": "Title for the example",
                "meta:description": "Description for the example",
                "name": "Rhys"
            },
            {
                "meta:title": "Title for the second example",
                "name": "Sarah"
            },
            {
                "name": "Charlie"
            }
        ],
        "properties": {
            "name": {
                "title": "Name",
                "description": "The name of a person",
                "type": "string",
                "examples": [
                    "David"
                ]
            }
        },
        "additionalProperties": false,
        "required": [
            "name"
        ]
    }