50 lines
1007 B
JSON
50 lines
1007 B
JSON
{
|
|
"$ref": "#/definitions/posts",
|
|
"definitions": {
|
|
"posts": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"date": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"format": "unix-time"
|
|
}
|
|
]
|
|
},
|
|
"draft": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"dropcap": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"toc": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"$schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"date"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
} |