22 lines
472 B
JSON
22 lines
472 B
JSON
|
{
|
||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
"$id": "posts.add",
|
||
|
"title": "posts.add",
|
||
|
"description": "Schema for posts.add",
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"posts": {
|
||
|
"type": "array",
|
||
|
"minItems": 1,
|
||
|
"maxItems": 1,
|
||
|
"items": {
|
||
|
"type": "object",
|
||
|
"allOf": [{ "$ref": "posts#/definitions/post" }],
|
||
|
"required": ["title"]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"required": ["posts"]
|
||
|
}
|