Person
JSON schema example for a person entity
$id | examples-with-meta.yml |
$schema | http://json-schema.org/draft-07/schema# |
Properties
Example
Title for the example
Description for the example
Example
Title for the second example
Example
name
Title |
Name |
Description |
The name of a person |
Type | String |
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"
]
}