Better format of schema in readme.cpp
This commit is contained in:
parent
e9a8568373
commit
6709194813
@ -12,23 +12,26 @@ static json person_schema = R"(
|
|||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "A person",
|
"title": "A person",
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"description": "Name",
|
"description": "Name",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"age": {
|
"age": {
|
||||||
"description": "Age of the person",
|
"description": "Age of the person",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"minimum": 2,
|
"minimum": 2,
|
||||||
"maximum": 200
|
"maximum": 200
|
||||||
},
|
},
|
||||||
"address":{
|
"address":{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties":{
|
"properties":{
|
||||||
"street":{
|
"street":{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "Abbey Road"
|
"default": "Abbey Road"
|
||||||
}}}},
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"age"
|
"age"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user