ajv should match \"then\" schema"
Primary tabs
для случая:
"allOf": [ { "if": { "properties": { "deliveryType": { "not": { "const": deliveryTypes.CITY.value } } } }, "then": { "properties": { "cities": { "type": "array", "minItems": 1, } } }, }, { "if": { "properties": { "deliveryType": { "not": { "const": deliveryTypes.NO_DELIVERY.value } } } }, "then": { required: ["country"], }, }, ]
- Log in to post comments
- 600 reads