131 lines
2.7 KiB
JSON
131 lines
2.7 KiB
JSON
{
|
|
"$ref": "#/definitions/posts",
|
|
"definitions": {
|
|
"posts": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"published": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"format": "unix-time"
|
|
}
|
|
]
|
|
},
|
|
"updated": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
{
|
|
"type": "integer",
|
|
"format": "unix-time"
|
|
}
|
|
]
|
|
},
|
|
"draft": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"image": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"category": {
|
|
"anyOf": [
|
|
{
|
|
"anyOf": [
|
|
{
|
|
"not": {}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": ""
|
|
},
|
|
"lang": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"pinned": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"author": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"sourceLink": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"licenseName": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"licenseUrl": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"prevTitle": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"prevSlug": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"nextTitle": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"nextSlug": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"$schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"published"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
} |