Track all types in git, sync to server on deploy
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
This commit is contained in:
60
types/blog_post.json5
Normal file
60
types/blog_post.json5
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "blog_post",
|
||||
"description": "Simple blog post with title, body, tags and publish status",
|
||||
"tags": [
|
||||
"content",
|
||||
"blog"
|
||||
],
|
||||
"category": "content",
|
||||
"fieldOrder": [
|
||||
"author",
|
||||
"body",
|
||||
"created_at",
|
||||
"excerpt",
|
||||
"published",
|
||||
"tags",
|
||||
"title"
|
||||
],
|
||||
"fields": {
|
||||
"author": {
|
||||
"type": "string",
|
||||
"description": "Author name"
|
||||
},
|
||||
"body": {
|
||||
"type": "markdown",
|
||||
"required": true,
|
||||
"description": "Main content (Markdown)",
|
||||
"minLength": 1
|
||||
},
|
||||
"created_at": {
|
||||
"type": "datetime",
|
||||
"auto": true,
|
||||
"readonly": true,
|
||||
"description": "Creation timestamp (auto-generated)"
|
||||
},
|
||||
"excerpt": {
|
||||
"type": "string",
|
||||
"description": "Short summary for previews",
|
||||
"maxLength": 500
|
||||
},
|
||||
"published": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Whether the post is publicly visible"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Categorisation tags"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"description": "Title of the blog post",
|
||||
"minLength": 1,
|
||||
"maxLength": 200
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user