查看原始 JSON
{
"type": "object",
"required": [
"request"
],
"properties": {
"request": {
"type": "object",
"required": [
"language_name",
"location_code",
"target",
"platform",
"filters",
"order_by",
"offset",
"limit"
],
"properties": {
"limit": {
"type": "integer",
"const": 3
},
"offset": {
"type": "integer",
"const": 0
},
"target": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"domain",
"search_filter"
],
"properties": {
"domain": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"search_filter": {
"type": "string",
"maxLength": 256,
"minLength": 1
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"keyword",
"search_scope"
],
"properties": {
"keyword": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"search_scope": {
"type": "array",
"items": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"maxItems": 1,
"minItems": 1
}
},
"additionalProperties": false
}
]
},
"maxItems": 2,
"minItems": 1
},
"filters": {
"type": "array",
"items": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"maxLength": 256,
"minLength": 1
},
{
"type": "integer",
"const": 1000
}
]
},
"maxItems": 3,
"minItems": 1
},
"maxItems": 1,
"minItems": 1
},
"order_by": {
"type": "array",
"items": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"maxItems": 1,
"minItems": 1
},
"platform": {
"type": "string",
"const": "google"
},
"language_name": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"location_code": {
"type": "integer",
"maximum": 100000000,
"minimum": 1
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}