123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"targetLocale": {
"type": "string",
"maxLength": 35
},
"result": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 3,
"maxLength": 180
},
"excerpt": {
"type": "string",
"maxLength": 500
},
"body": {
"$ref": "#/$defs/__schema0"
},
"formatVersion": {
"type": "number",
"const": 2
},
"titleDocument": {
"$ref": "#/$defs/__schema0"
},
"excerptDocument": {
"$ref": "#/$defs/__schema0"
}
},
"required": [
"title",
"excerpt",
"body"
],
"additionalProperties": false
},
"guard": {
"anyOf": [
{
"type": "object",
"properties": {
"sourceLocale": {
"type": "string",
"minLength": 2,
"maxLength": 35
},
"sourceVersion": {
"type": "string",
"enum": [
"draft",
"published"
]
},
"sourceRevision": {
"type": "integer",
"minimum": -1,
"maximum": 9007199254740991
},
"sourceIdentity": {
"anyOf": [
{
"type": "string",
"maxLength": 1500000
},
{
"type": "null"
}
]
},
"targetLocale": {
"type": "string",
"minLength": 2,
"maxLength": 35
},
"targetRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"targetIdentity": {
"anyOf": [
{
"type": "string",
"maxLength": 1500000
},
{
"type": "null"
}
]
}
},
"required": [
"sourceLocale",
"sourceVersion",
"sourceRevision",
"sourceIdentity",
"targetLocale",
"targetRevision",
"targetIdentity"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"targetLocale",
"result",
"guard"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"$ref": "#/$defs/__schema1"
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
}
}
}