Обязательность вложенного поля действует, когда передан его родительский объект.
Полная JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"goal": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 120
},
{
"type": "null"
}
]
},
"instagramAccountId": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"postId": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
]
},
"postUrl": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"pendingNextReel": {
"default": false,
"type": "boolean"
},
"matchAnyPost": {
"default": false,
"type": "boolean"
},
"keywords": {
"default": [],
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
}
},
"matchAnyWord": {
"default": false,
"type": "boolean"
},
"dmTriggerEnabled": {
"default": false,
"type": "boolean"
},
"dmMessage": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"openingDmEnabled": {
"default": false,
"type": "boolean"
},
"openingDmMessage": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
},
"openingDmButtonLabel": {
"anyOf": [
{
"type": "string",
"maxLength": 64
},
{
"type": "null"
}
]
},
"linkButtonLabel": {
"anyOf": [
{
"type": "string",
"maxLength": 20
},
{
"type": "null"
}
]
},
"requireFollow": {
"default": false,
"type": "boolean"
},
"followPromptMessage": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
},
"followPromptButtonLabel": {
"anyOf": [
{
"type": "string",
"maxLength": 20
},
{
"type": "null"
}
]
},
"followUpEnabled": {
"default": false,
"type": "boolean"
},
"followUpMessage": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "null"
}
]
},
"followUpDelayMinutes": {
"default": 0,
"type": "integer",
"minimum": 0,
"maximum": 1440
},
"publicReplyEnabled": {
"default": false,
"type": "boolean"
},
"publicReplyMessages": {
"default": [],
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"maxLength": 1000
}
},
"trackedDestinationUrl": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "string",
"const": ""
}
]
},
{
"type": "null"
}
]
},
"isActive": {
"default": true,
"type": "boolean"
},
"wholeWordMatch": {
"default": true,
"type": "boolean"
},
"secondaryDestinationUrl": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "string",
"const": ""
}
]
},
{
"type": "null"
}
]
},
"secondaryButtonLabel": {
"anyOf": [
{
"type": "string",
"maxLength": 20
},
{
"type": "null"
}
]
},
"reportShareEnabled": {
"default": false,
"type": "boolean"
}
},
"required": [
"name",
"dmMessage"
]
}