🌟构建了简易的blog
This commit is contained in:
131
website/blog/collections/posts.schema.json
Normal file
131
website/blog/collections/posts.schema.json
Normal file
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"$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#"
|
||||
}
|
||||
Reference in New Issue
Block a user