woocommerce/packages/php/remote-specs-validation/schemas/wc-pay-promotions.json

53 lines
940 B
JSON
Raw Normal View History

{
"title": "WC Payments Promotions",
"type": "array",
"required": ["id", "title", "content", "image", "image_72x72", "external_link", "is_visible"],
"additionalProperties": false,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"image": {
"type": "string"
},
"plugins": {
"type": "array",
"items": {
"type": "string"
}
},
"sub_title": {
"type": "string"
},
"is_visible": {
"oneOf": [
{"type": "boolean"},
{
"type": "array",
"items": {
"anyOf": [
{"$ref": "./shared/rules.json"}
]
}
}
]
},
"additional_info": {
"type": "object",
"additionalProperties": true
}
}
},
"definitions": {
"operations": {"$ref": "./shared/operations.json"},
"rules": {"$ref": "./shared/rules.json"}
}
}