1
0

Adjusted the file to validate article description

This commit is contained in:
Richard Dern 2024-05-17 00:21:54 +02:00
parent 83d90175c9
commit 8fcd5c4a25

View File

@ -13,8 +13,31 @@
"type": "string"
},
"description": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"text": {
"type": "string"
},
"generator": {
"type": "string"
},
"model": {
"type": "string"
},
"edited": {
"type": "boolean"
}
},
"required": ["text", "generator", "model", "edited"],
"additionalProperties": false
}
]
},
"date": {
"type": "string",
"pattern": "^(\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}(\\+|-)\\d{2}:\\d{2})?)$"