mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-05-07 01:01:19 -05:00
86 lines
1.7 KiB
JSON
86 lines
1.7 KiB
JSON
{
|
|
"title": "articles_view",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"intro": {
|
|
"type": "string"
|
|
},
|
|
"tag": {
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"image": {
|
|
"$ref": "#/$defs/image"
|
|
},
|
|
"created": {
|
|
"type": "integer"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"author",
|
|
"title",
|
|
"intro",
|
|
"tag",
|
|
"body",
|
|
"created",
|
|
"username"
|
|
],
|
|
"$defs": {
|
|
"image": {
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "FileUpload",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "The file's text-encoded UUID from which the objectstore path is derived.",
|
|
"type": "string"
|
|
},
|
|
"original_filename": {
|
|
"description": "The file's original file name.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"filename": {
|
|
"description": "A unique filename derived from original. Helps to address content caching issues with\nproxies, CDNs, ... .",
|
|
"type": "string"
|
|
},
|
|
"content_type": {
|
|
"description": "The file's user-provided content type.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"mime_type": {
|
|
"description": "The file's inferred mime type. Not user provided.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename"
|
|
]
|
|
}
|
|
}
|
|
}
|