From 0b2be9149368bb855387af2b0d88a92178c6d08f Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Mon, 3 Mar 2025 07:10:10 +0100 Subject: [PATCH] [API] Fix contract tests for API Platform 4.1 --- .../post_catalog_promotion_with_invalid_dates_response.json | 4 ++-- .../post_catalog_promotion_with_taken_code_response.json | 4 ++-- ...post_catalog_promotion_without_required_data_response.json | 4 ++-- ...t_catalog_promotion_with_duplicate_locale_translation.json | 4 ++-- .../currency/post_currency_with_invalid_code_response.json | 4 ++-- .../post_customer_with_already_taken_email_response.json | 4 ++-- .../customer/post_customer_with_invalid_email_response.json | 4 ++-- .../customer/post_customer_with_invalid_gender_response.json | 4 ++-- .../customer/post_customer_with_invalid_name_response.json | 4 ++-- .../update_customer_with_invalid_gender_response.json | 4 ++-- .../admin/locale/post_locale_with_invalid_code_response.json | 4 ++-- .../put_payment_method_with_duplicate_locale_translation.json | 4 ++-- .../product/post_product_with_invalid_translation_locale.json | 4 ++-- .../product/post_product_without_required_data_response.json | 4 ++-- .../put_product_with_duplicate_locale_translation.json | 4 ++-- .../post_duplicated_association_product_response.json | 4 ++-- ...st_product_association_without_required_data_response.json | 4 ++-- ...oduct_association_type_without_required_data_response.json | 4 ++-- ...ation_type_with_duplicate_locale_translation_response.json | 4 ++-- ...ost_product_attribute_with_unregistered_type_response.json | 4 ++-- ...post_product_attribute_without_required_data_response.json | 4 ++-- ...duct_attribute_with_disabled_multiple_option_response.json | 4 ++-- ...ibute_with_invalid_max_entries_configuration_response.json | 4 ++-- ...ibute_with_invalid_min_entries_configuration_response.json | 4 ++-- ...product_attribute_with_invalid_configuration_response.json | 4 ++-- ...t_product_attribute_with_duplicate_locale_translation.json | 4 ++-- .../post_product_image_with_invalid_variant_response.json | 4 ++-- .../put_product_image_with_invalid_variant_response.json | 4 ++-- ...roduct_option_value_with_duplicate_locale_translation.json | 4 ++-- .../put_product_option_with_duplicate_locale_translation.json | 4 ++-- .../post_promotion_with_invalid_actions_response.json | 4 ++-- .../promotion/post_promotion_with_invalid_dates_response.json | 4 ++-- .../promotion/post_promotion_with_invalid_rules_response.json | 4 ++-- .../promotion/post_promotion_with_taken_code_response.json | 4 ++-- .../post_promotion_without_required_data_response.json | 4 ++-- .../put_promotion_with_duplicate_locale_translation.json | 4 ++-- .../admin/taxon/post_taxon_with_taken_code_response.json | 4 ++-- .../taxon/post_taxon_without_required_data_response.json | 4 ++-- .../taxon/put_taxon_with_duplicate_locale_translation.json | 4 ++-- .../shop/customer/reset_password_validation_response.json | 4 ++-- 40 files changed, 80 insertions(+), 80 deletions(-) diff --git a/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_invalid_dates_response.json b/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_invalid_dates_response.json index d1716d78ad..40ad185d44 100644 --- a/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_invalid_dates_response.json +++ b/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_invalid_dates_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "endDate: End date cannot be set before start date.", "status": 422, diff --git a/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_taken_code_response.json b/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_taken_code_response.json index 8c33a56a16..dbe9037833 100644 --- a/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_taken_code_response.json +++ b/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_with_taken_code_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: The catalog promotion with given code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_without_required_data_response.json b/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_without_required_data_response.json index da583c8331..8f58019731 100644 --- a/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_without_required_data_response.json +++ b/tests/Api/Responses/admin/catalog_promotion/post_catalog_promotion_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: Please enter catalog promotion code.\nname: Please enter catalog promotion name.", "status": 422, diff --git a/tests/Api/Responses/admin/catalog_promotion/put_catalog_promotion_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/catalog_promotion/put_catalog_promotion_with_duplicate_locale_translation.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/catalog_promotion/put_catalog_promotion_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/catalog_promotion/put_catalog_promotion_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/currency/post_currency_with_invalid_code_response.json b/tests/Api/Responses/admin/currency/post_currency_with_invalid_code_response.json index 3558b6f1f0..78c8e8e552 100644 --- a/tests/Api/Responses/admin/currency/post_currency_with_invalid_code_response.json +++ b/tests/Api/Responses/admin/currency/post_currency_with_invalid_code_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: This value is not a valid currency code.", "status": 422, diff --git a/tests/Api/Responses/admin/customer/post_customer_with_already_taken_email_response.json b/tests/Api/Responses/admin/customer/post_customer_with_already_taken_email_response.json index 18dce22947..5654ee8ca0 100644 --- a/tests/Api/Responses/admin/customer/post_customer_with_already_taken_email_response.json +++ b/tests/Api/Responses/admin/customer/post_customer_with_already_taken_email_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "email: This email is already used.", "status": 422, diff --git a/tests/Api/Responses/admin/customer/post_customer_with_invalid_email_response.json b/tests/Api/Responses/admin/customer/post_customer_with_invalid_email_response.json index b9024a2d93..8b2bbe1e62 100644 --- a/tests/Api/Responses/admin/customer/post_customer_with_invalid_email_response.json +++ b/tests/Api/Responses/admin/customer/post_customer_with_invalid_email_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "email: This email is invalid.", "status": 422, diff --git a/tests/Api/Responses/admin/customer/post_customer_with_invalid_gender_response.json b/tests/Api/Responses/admin/customer/post_customer_with_invalid_gender_response.json index 6d59a7250a..d1fcdec1bc 100644 --- a/tests/Api/Responses/admin/customer/post_customer_with_invalid_gender_response.json +++ b/tests/Api/Responses/admin/customer/post_customer_with_invalid_gender_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "gender: The value you selected is not a valid choice.", "status": 422, diff --git a/tests/Api/Responses/admin/customer/post_customer_with_invalid_name_response.json b/tests/Api/Responses/admin/customer/post_customer_with_invalid_name_response.json index 85422f6a67..f7f366f83b 100644 --- a/tests/Api/Responses/admin/customer/post_customer_with_invalid_name_response.json +++ b/tests/Api/Responses/admin/customer/post_customer_with_invalid_name_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "firstName: First name must be at least 2 characters long.\nlastName: Last name must be at least 2 characters long.", "status": 422, diff --git a/tests/Api/Responses/admin/customer/update_customer_with_invalid_gender_response.json b/tests/Api/Responses/admin/customer/update_customer_with_invalid_gender_response.json index 6d59a7250a..d1fcdec1bc 100644 --- a/tests/Api/Responses/admin/customer/update_customer_with_invalid_gender_response.json +++ b/tests/Api/Responses/admin/customer/update_customer_with_invalid_gender_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "gender: The value you selected is not a valid choice.", "status": 422, diff --git a/tests/Api/Responses/admin/locale/post_locale_with_invalid_code_response.json b/tests/Api/Responses/admin/locale/post_locale_with_invalid_code_response.json index 2222a1670f..62ba57de59 100644 --- a/tests/Api/Responses/admin/locale/post_locale_with_invalid_code_response.json +++ b/tests/Api/Responses/admin/locale/post_locale_with_invalid_code_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: This value is not a valid locale code.", "status": 422, diff --git a/tests/Api/Responses/admin/payment_method/put_payment_method_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/payment_method/put_payment_method_with_duplicate_locale_translation.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/payment_method/put_payment_method_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/payment_method/put_payment_method_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/product/post_product_with_invalid_translation_locale.json b/tests/Api/Responses/admin/product/post_product_with_invalid_translation_locale.json index 0b7746372c..eecae22330 100644 --- a/tests/Api/Responses/admin/product/post_product_with_invalid_translation_locale.json +++ b/tests/Api/Responses/admin/product/post_product_with_invalid_translation_locale.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[a].locale: This value is not a valid locale.", "status": 422, diff --git a/tests/Api/Responses/admin/product/post_product_without_required_data_response.json b/tests/Api/Responses/admin/product/post_product_without_required_data_response.json index ddf7798dea..89576bc49f 100644 --- a/tests/Api/Responses/admin/product/post_product_without_required_data_response.json +++ b/tests/Api/Responses/admin/product/post_product_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: Please enter product code.\ntranslations[en_US].name: Please enter product name.\ntranslations[en_US].slug: Please enter product slug.", "status": 422, diff --git a/tests/Api/Responses/admin/product/put_product_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/product/put_product_with_duplicate_locale_translation.json index 1cfa66d4b2..68cc4aae09 100644 --- a/tests/Api/Responses/admin/product/put_product_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/product/put_product_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[pl_PL].locale: A translation for the \"pl_PL\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/product_association/post_duplicated_association_product_response.json b/tests/Api/Responses/admin/product_association/post_duplicated_association_product_response.json index a5fd391df0..48d9e87220 100644 --- a/tests/Api/Responses/admin/product_association/post_duplicated_association_product_response.json +++ b/tests/Api/Responses/admin/product_association/post_duplicated_association_product_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "owner: An association with this owner and type already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/product_association/post_product_association_without_required_data_response.json b/tests/Api/Responses/admin/product_association/post_product_association_without_required_data_response.json index ffa7886229..1fdb050618 100644 --- a/tests/Api/Responses/admin/product_association/post_product_association_without_required_data_response.json +++ b/tests/Api/Responses/admin/product_association/post_product_association_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "type: Please enter association type.\nowner: Please enter association owner.", "status": 422, diff --git a/tests/Api/Responses/admin/product_association_type/post_product_association_type_without_required_data_response.json b/tests/Api/Responses/admin/product_association_type/post_product_association_type_without_required_data_response.json index 2311a5a379..6c0dac67e2 100644 --- a/tests/Api/Responses/admin/product_association_type/post_product_association_type_without_required_data_response.json +++ b/tests/Api/Responses/admin/product_association_type/post_product_association_type_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: Please enter association type code.\ntranslations[en_US].name: Please enter association type name.", "status": 422, diff --git a/tests/Api/Responses/admin/product_association_type/put_product_association_type_with_duplicate_locale_translation_response.json b/tests/Api/Responses/admin/product_association_type/put_product_association_type_with_duplicate_locale_translation_response.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/product_association_type/put_product_association_type_with_duplicate_locale_translation_response.json +++ b/tests/Api/Responses/admin/product_association_type/put_product_association_type_with_duplicate_locale_translation_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/post_product_attribute_with_unregistered_type_response.json b/tests/Api/Responses/admin/product_attribute/post_product_attribute_with_unregistered_type_response.json index 9c7b32192c..a8aa859028 100644 --- a/tests/Api/Responses/admin/product_attribute/post_product_attribute_with_unregistered_type_response.json +++ b/tests/Api/Responses/admin/product_attribute/post_product_attribute_with_unregistered_type_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "type: The attribute type \"foobar\" is not registered. Available attribute types: text, textarea, checkbox, integer, float, percent, datetime, date, select.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/post_product_attribute_without_required_data_response.json b/tests/Api/Responses/admin/product_attribute/post_product_attribute_without_required_data_response.json index 9a71fc4d7a..37a41fe3d6 100644 --- a/tests/Api/Responses/admin/product_attribute/post_product_attribute_without_required_data_response.json +++ b/tests/Api/Responses/admin/product_attribute/post_product_attribute_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: Please enter attribute code.\ntranslations[en_US].name: Please enter attribute name.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_disabled_multiple_option_response.json b/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_disabled_multiple_option_response.json index a73f1576b8..07ad73196c 100644 --- a/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_disabled_multiple_option_response.json +++ b/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_disabled_multiple_option_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "Configuration multiple must be true if min or max entries values are specified.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_max_entries_configuration_response.json b/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_max_entries_configuration_response.json index 56e8b70ac5..ea18af0756 100644 --- a/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_max_entries_configuration_response.json +++ b/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_max_entries_configuration_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "Configuration max entries value must be greater or equal to the min entries value.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_min_entries_configuration_response.json b/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_min_entries_configuration_response.json index d3a7849253..b1785c18de 100644 --- a/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_min_entries_configuration_response.json +++ b/tests/Api/Responses/admin/product_attribute/post_select_product_attribute_with_invalid_min_entries_configuration_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "Configuration min entries value must be lower or equal to the number of added choices.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/post_text_product_attribute_with_invalid_configuration_response.json b/tests/Api/Responses/admin/product_attribute/post_text_product_attribute_with_invalid_configuration_response.json index 60cef3fff8..dcf82b8538 100644 --- a/tests/Api/Responses/admin/product_attribute/post_text_product_attribute_with_invalid_configuration_response.json +++ b/tests/Api/Responses/admin/product_attribute/post_text_product_attribute_with_invalid_configuration_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "Configuration max length must be greater or equal to the min length.", "status": 422, diff --git a/tests/Api/Responses/admin/product_attribute/put_product_attribute_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/product_attribute/put_product_attribute_with_duplicate_locale_translation.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/product_attribute/put_product_attribute_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/product_attribute/put_product_attribute_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/product_image/post_product_image_with_invalid_variant_response.json b/tests/Api/Responses/admin/product_image/post_product_image_with_invalid_variant_response.json index 914efb56a2..b09b0400e5 100644 --- a/tests/Api/Responses/admin/product_image/post_product_image_with_invalid_variant_response.json +++ b/tests/Api/Responses/admin/product_image/post_product_image_with_invalid_variant_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "The product variant with code \"CAP_YELLOW\" does not belong to the product with code \"MUG\", which is the owner of the image.", "status": 422, diff --git a/tests/Api/Responses/admin/product_image/put_product_image_with_invalid_variant_response.json b/tests/Api/Responses/admin/product_image/put_product_image_with_invalid_variant_response.json index 914efb56a2..b09b0400e5 100644 --- a/tests/Api/Responses/admin/product_image/put_product_image_with_invalid_variant_response.json +++ b/tests/Api/Responses/admin/product_image/put_product_image_with_invalid_variant_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "The product variant with code \"CAP_YELLOW\" does not belong to the product with code \"MUG\", which is the owner of the image.", "status": 422, diff --git a/tests/Api/Responses/admin/product_option/put_product_option_value_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/product_option/put_product_option_value_with_duplicate_locale_translation.json index 31bc5380d1..1479c4eab9 100644 --- a/tests/Api/Responses/admin/product_option/put_product_option_value_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/product_option/put_product_option_value_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "values[0].translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/product_option/put_product_option_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/product_option/put_product_option_with_duplicate_locale_translation.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/product_option/put_product_option_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/product_option/put_product_option_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_actions_response.json b/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_actions_response.json index 2234aa6ca5..8ecbc1a168 100644 --- a/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_actions_response.json +++ b/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_actions_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "@string@", "status": 422, diff --git a/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_dates_response.json b/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_dates_response.json index 1b99282dfb..6d8967305e 100644 --- a/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_dates_response.json +++ b/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_dates_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "endsAt: End date cannot be set prior start date.", "status": 422, diff --git a/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_rules_response.json b/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_rules_response.json index 622a6b5cc7..a04b883461 100644 --- a/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_rules_response.json +++ b/tests/Api/Responses/admin/promotion/post_promotion_with_invalid_rules_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "@string@", "status": 422, diff --git a/tests/Api/Responses/admin/promotion/post_promotion_with_taken_code_response.json b/tests/Api/Responses/admin/promotion/post_promotion_with_taken_code_response.json index 8a8afedb62..89c6bbd5b9 100644 --- a/tests/Api/Responses/admin/promotion/post_promotion_with_taken_code_response.json +++ b/tests/Api/Responses/admin/promotion/post_promotion_with_taken_code_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: The promotion with given code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/promotion/post_promotion_without_required_data_response.json b/tests/Api/Responses/admin/promotion/post_promotion_without_required_data_response.json index 3f4a8b3053..679bab40a8 100644 --- a/tests/Api/Responses/admin/promotion/post_promotion_without_required_data_response.json +++ b/tests/Api/Responses/admin/promotion/post_promotion_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: Please enter promotion code.\nname: Please enter promotion name.", "status": 422, diff --git a/tests/Api/Responses/admin/promotion/put_promotion_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/promotion/put_promotion_with_duplicate_locale_translation.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/promotion/put_promotion_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/promotion/put_promotion_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/taxon/post_taxon_with_taken_code_response.json b/tests/Api/Responses/admin/taxon/post_taxon_with_taken_code_response.json index b910d464ae..08ba89de75 100644 --- a/tests/Api/Responses/admin/taxon/post_taxon_with_taken_code_response.json +++ b/tests/Api/Responses/admin/taxon/post_taxon_with_taken_code_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "code: Taxon with given code already exists.", "status": 422, diff --git a/tests/Api/Responses/admin/taxon/post_taxon_without_required_data_response.json b/tests/Api/Responses/admin/taxon/post_taxon_without_required_data_response.json index 9cf6d7bacf..251f7d6882 100644 --- a/tests/Api/Responses/admin/taxon/post_taxon_without_required_data_response.json +++ b/tests/Api/Responses/admin/taxon/post_taxon_without_required_data_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description":"translations[en_US].name: Please enter taxon name.\ntranslations[en_US].slug: Please enter taxon slug.\ncode: Please enter taxon code.", "status": 422, diff --git a/tests/Api/Responses/admin/taxon/put_taxon_with_duplicate_locale_translation.json b/tests/Api/Responses/admin/taxon/put_taxon_with_duplicate_locale_translation.json index 356982e022..9cb70d7299 100644 --- a/tests/Api/Responses/admin/taxon/put_taxon_with_duplicate_locale_translation.json +++ b/tests/Api/Responses/admin/taxon/put_taxon_with_duplicate_locale_translation.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "status": 422, diff --git a/tests/Api/Responses/shop/customer/reset_password_validation_response.json b/tests/Api/Responses/shop/customer/reset_password_validation_response.json index c48180e785..feca600c69 100644 --- a/tests/Api/Responses/shop/customer/reset_password_validation_response.json +++ b/tests/Api/Responses/shop/customer/reset_password_validation_response.json @@ -1,7 +1,7 @@ { - "@context": "\/api\/v2\/contexts\/ConstraintViolationList", + "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')", "@id": "\/api\/v2\/validation_errors\/@string@", - "@type": "ConstraintViolationList", + "@type": "@string@.startsWith('ConstraintViolation')", "hydra:title": "An error occurred", "hydra:description": "email: This email is invalid.\nlocaleCode: This value is not a valid locale code.", "status": 422,