123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^product_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"request": {
"type": "object",
"properties": {
"entryId": {
"$ref": "#/$defs/__schema0"
},
"expectedRevision": {
"$ref": "#/$defs/__schema1"
},
"title": {
"$ref": "#/$defs/__schema2"
},
"bodyContent": {
"$ref": "#/$defs/__schema3"
},
"locale": {
"$ref": "#/$defs/__schema5"
},
"feedbackIds": {
"$ref": "#/$defs/__schema6"
},
"expectedTransform": {
"$ref": "#/$defs/__schema8"
}
},
"required": [
"entryId",
"expectedRevision",
"title",
"bodyContent",
"feedbackIds"
],
"additionalProperties": false
}
},
"required": [
"productId",
"request"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"type": "string",
"pattern": "^changelog_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"__schema1": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"__schema2": {
"type": "string",
"minLength": 2,
"maxLength": 160
},
"__schema3": {
"$ref": "#/$defs/__schema4"
},
"__schema4": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema4"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema4"
}
}
]
},
"__schema5": {
"type": "string"
},
"__schema6": {
"maxItems": 500,
"type": "array",
"items": {
"$ref": "#/$defs/__schema7"
}
},
"__schema7": {
"type": "string",
"pattern": "^post_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"__schema8": {
"type": "object",
"properties": {
"sourceLocale": {
"$ref": "#/$defs/__schema9"
},
"sourceVersion": {
"type": "string",
"enum": [
"draft",
"published"
]
},
"sourceRevision": {
"type": "integer",
"minimum": -1,
"maximum": 9007199254740991
},
"sourceIdentity": {
"anyOf": [
{
"type": "string",
"maxLength": 1500000
},
{
"type": "null"
}
]
},
"targetLocale": {
"$ref": "#/$defs/__schema9"
},
"targetRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"targetIdentity": {
"anyOf": [
{
"type": "string",
"maxLength": 1500000
},
{
"type": "null"
}
]
}
},
"required": [
"sourceLocale",
"sourceVersion",
"sourceRevision",
"sourceIdentity",
"targetLocale",
"targetRevision",
"targetIdentity"
]
},
"__schema9": {
"type": "string",
"minLength": 2,
"maxLength": 35
}
}
}