From 4f9b8513165b2e5c394096f96441f3f7a384d4ae Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Mon, 9 Sep 2024 10:35:21 +0800 Subject: [PATCH] [remote-specs-validation] Fix `base_location_state` and `base_location_country` value type (#51169) Fix base_location_state and base_location_country value type --- .../bundles/obw-free-extensions.json | 10 ++++++++-- .../bundles/payment-gateway-suggestions.json | 20 +++++++++++++++---- .../bundles/remote-inbox-notification.json | 10 ++++++++-- .../bundles/shipping-partner-suggestions.json | 20 +++++++++++++++---- .../bundles/wc-pay-promotions.json | 20 +++++++++++++++---- .../changelog/fix-remote-spec-schema | 4 ++++ .../shared/rules/base_location_country.json | 7 +++++-- .../shared/rules/base_location_state.json | 7 +++++-- 8 files changed, 78 insertions(+), 20 deletions(-) create mode 100644 packages/php/remote-specs-validation/changelog/fix-remote-spec-schema diff --git a/packages/php/remote-specs-validation/bundles/obw-free-extensions.json b/packages/php/remote-specs-validation/bundles/obw-free-extensions.json index 4f6eab2bf3f..76da6d4426c 100644 --- a/packages/php/remote-specs-validation/bundles/obw-free-extensions.json +++ b/packages/php/remote-specs-validation/bundles/obw-free-extensions.json @@ -195,7 +195,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -217,7 +220,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, diff --git a/packages/php/remote-specs-validation/bundles/payment-gateway-suggestions.json b/packages/php/remote-specs-validation/bundles/payment-gateway-suggestions.json index 78a72622f7b..37928228c99 100644 --- a/packages/php/remote-specs-validation/bundles/payment-gateway-suggestions.json +++ b/packages/php/remote-specs-validation/bundles/payment-gateway-suggestions.json @@ -179,7 +179,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -201,7 +204,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -864,7 +870,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -886,7 +895,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, diff --git a/packages/php/remote-specs-validation/bundles/remote-inbox-notification.json b/packages/php/remote-specs-validation/bundles/remote-inbox-notification.json index c64ac57f605..f9b0de6f6b2 100644 --- a/packages/php/remote-specs-validation/bundles/remote-inbox-notification.json +++ b/packages/php/remote-specs-validation/bundles/remote-inbox-notification.json @@ -283,7 +283,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -305,7 +308,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, diff --git a/packages/php/remote-specs-validation/bundles/shipping-partner-suggestions.json b/packages/php/remote-specs-validation/bundles/shipping-partner-suggestions.json index 0e886b8aca7..d86a98dd5df 100644 --- a/packages/php/remote-specs-validation/bundles/shipping-partner-suggestions.json +++ b/packages/php/remote-specs-validation/bundles/shipping-partner-suggestions.json @@ -173,7 +173,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -195,7 +198,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -847,7 +853,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -869,7 +878,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, diff --git a/packages/php/remote-specs-validation/bundles/wc-pay-promotions.json b/packages/php/remote-specs-validation/bundles/wc-pay-promotions.json index 75f8d2fd7d1..c90eac95ab4 100644 --- a/packages/php/remote-specs-validation/bundles/wc-pay-promotions.json +++ b/packages/php/remote-specs-validation/bundles/wc-pay-promotions.json @@ -176,7 +176,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -198,7 +201,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -844,7 +850,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, @@ -866,7 +875,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } }, diff --git a/packages/php/remote-specs-validation/changelog/fix-remote-spec-schema b/packages/php/remote-specs-validation/changelog/fix-remote-spec-schema new file mode 100644 index 00000000000..0feab54689d --- /dev/null +++ b/packages/php/remote-specs-validation/changelog/fix-remote-spec-schema @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix base_location_state and base_location_country value type diff --git a/packages/php/remote-specs-validation/schemas/shared/rules/base_location_country.json b/packages/php/remote-specs-validation/schemas/shared/rules/base_location_country.json index bcb565ef6b3..6d15e8f5ae2 100644 --- a/packages/php/remote-specs-validation/schemas/shared/rules/base_location_country.json +++ b/packages/php/remote-specs-validation/schemas/shared/rules/base_location_country.json @@ -10,7 +10,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } -} \ No newline at end of file +} diff --git a/packages/php/remote-specs-validation/schemas/shared/rules/base_location_state.json b/packages/php/remote-specs-validation/schemas/shared/rules/base_location_state.json index e2f1abb7fc9..b0f9266cbce 100644 --- a/packages/php/remote-specs-validation/schemas/shared/rules/base_location_state.json +++ b/packages/php/remote-specs-validation/schemas/shared/rules/base_location_state.json @@ -10,7 +10,10 @@ "$ref": "#/definitions/operations" }, "value": { - "type": "string" + "type": [ + "string", + "array" + ] } } -} \ No newline at end of file +}