[API] Fix contract tests for API Platform 4.1

This commit is contained in:
Grzegorz Sadowski 2025-03-03 07:10:10 +01:00
parent 771fb21436
commit 0b2be91493
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
40 changed files with 80 additions and 80 deletions

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "endDate: End date cannot be set before start date.", "hydra:description": "endDate: End date cannot be set before start date.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: The catalog promotion with given code already exists.", "hydra:description": "code: The catalog promotion with given code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: Please enter catalog promotion code.\nname: Please enter catalog promotion name.", "hydra:description": "code: Please enter catalog promotion code.\nname: Please enter catalog promotion name.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: This value is not a valid currency code.", "hydra:description": "code: This value is not a valid currency code.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "email: This email is already used.", "hydra:description": "email: This email is already used.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "email: This email is invalid.", "hydra:description": "email: This email is invalid.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "gender: The value you selected is not a valid choice.", "hydra:description": "gender: The value you selected is not a valid choice.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "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.", "hydra:description": "firstName: First name must be at least 2 characters long.\nlastName: Last name must be at least 2 characters long.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "gender: The value you selected is not a valid choice.", "hydra:description": "gender: The value you selected is not a valid choice.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: This value is not a valid locale code.", "hydra:description": "code: This value is not a valid locale code.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[a].locale: This value is not a valid locale.", "hydra:description": "translations[a].locale: This value is not a valid locale.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "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.", "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, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[pl_PL].locale: A translation for the \"pl_PL\" locale code already exists.", "hydra:description": "translations[pl_PL].locale: A translation for the \"pl_PL\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "owner: An association with this owner and type already exists.", "hydra:description": "owner: An association with this owner and type already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "type: Please enter association type.\nowner: Please enter association owner.", "hydra:description": "type: Please enter association type.\nowner: Please enter association owner.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: Please enter association type code.\ntranslations[en_US].name: Please enter association type name.", "hydra:description": "code: Please enter association type code.\ntranslations[en_US].name: Please enter association type name.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "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.", "hydra:description": "type: The attribute type \"foobar\" is not registered. Available attribute types: text, textarea, checkbox, integer, float, percent, datetime, date, select.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: Please enter attribute code.\ntranslations[en_US].name: Please enter attribute name.", "hydra:description": "code: Please enter attribute code.\ntranslations[en_US].name: Please enter attribute name.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "Configuration multiple must be true if min or max entries values are specified.", "hydra:description": "Configuration multiple must be true if min or max entries values are specified.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "Configuration max entries value must be greater or equal to the min entries value.", "hydra:description": "Configuration max entries value must be greater or equal to the min entries value.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "Configuration min entries value must be lower or equal to the number of added choices.", "hydra:description": "Configuration min entries value must be lower or equal to the number of added choices.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "Configuration max length must be greater or equal to the min length.", "hydra:description": "Configuration max length must be greater or equal to the min length.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "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.", "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, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "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.", "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, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "values[0].translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "values[0].translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "@string@", "hydra:description": "@string@",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "endsAt: End date cannot be set prior start date.", "hydra:description": "endsAt: End date cannot be set prior start date.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "@string@", "hydra:description": "@string@",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: The promotion with given code already exists.", "hydra:description": "code: The promotion with given code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: Please enter promotion code.\nname: Please enter promotion name.", "hydra:description": "code: Please enter promotion code.\nname: Please enter promotion name.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "code: Taxon with given code already exists.", "hydra:description": "code: Taxon with given code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "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.", "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, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.", "hydra:description": "translations[en_US].locale: A translation for the \"en_US\" locale code already exists.",
"status": 422, "status": 422,

View file

@ -1,7 +1,7 @@
{ {
"@context": "\/api\/v2\/contexts\/ConstraintViolationList", "@context": "\/api\/v2\/contexts\/@string@.startsWith('ConstraintViolation')",
"@id": "\/api\/v2\/validation_errors\/@string@", "@id": "\/api\/v2\/validation_errors\/@string@",
"@type": "ConstraintViolationList", "@type": "@string@.startsWith('ConstraintViolation')",
"hydra:title": "An error occurred", "hydra:title": "An error occurred",
"hydra:description": "email: This email is invalid.\nlocaleCode: This value is not a valid locale code.", "hydra:description": "email: This email is invalid.\nlocaleCode: This value is not a valid locale code.",
"status": 422, "status": 422,