You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/main/validation.feature
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -114,14 +114,19 @@ Feature: Using validations groups
114
114
"@context": "/contexts/ConstraintViolationList",
115
115
"@type": "ConstraintViolationList",
116
116
"hydra:title": "An error occurred",
117
-
"hydra:description": "baz: This value should be of type string.\nfoo: This value should be of type bool.\nbar: This value should be of type int.\nqux: This value should be of type string.\nuuid: This value should be of type uuid.\nrelatedDummy: This value should be of type array|string.\nrelatedDummies: This value should be of type array.",
117
+
"hydra:description": "baz: This value should be of type string.\nqux: This value should be of type string.\nfoo: This value should be of type bool.\nbar: This value should be of type int.\nuuid: This value should be of type uuid.\nrelatedDummy: This value should be of type array|string.\nrelatedDummies: This value should be of type array.",
118
118
"violations": [
119
119
{
120
120
"propertyPath": "baz",
121
121
"message": "This value should be of type string.",
122
122
"code": "ba785a8c-82cb-4283-967c-3cf342181b40",
123
123
"hint": "Failed to create object because the class misses the \"baz\" property."
124
124
},
125
+
{
126
+
"propertyPath": "qux",
127
+
"message": "This value should be of type string.",
128
+
"code": "ba785a8c-82cb-4283-967c-3cf342181b40"
129
+
},
125
130
{
126
131
"propertyPath": "foo",
127
132
"message": "This value should be of type bool.",
@@ -132,11 +137,6 @@ Feature: Using validations groups
132
137
"message": "This value should be of type int.",
133
138
"code": "ba785a8c-82cb-4283-967c-3cf342181b40"
134
139
},
135
-
{
136
-
"propertyPath": "qux",
137
-
"message": "This value should be of type string.",
thrownewRuntimeException(\sprintf('Cannot create an instance of %s from serialized data because the variadic parameter %s can only accept an array.', $class, $constructorParameter->name));
$exception = NotNormalizableValueException::createForUnexpectedDataType(\sprintf('Failed to create object because the class misses the "%s" property.', $constructorParameter->name), $data, ['unknown'], $context['deserialization_path'] ?? null, true);
thrownewMissingConstructorArgumentsException(\sprintf('Cannot create an instance of "%s" from serialized data because its constructor requires the following parameters to be present : "$%s".', $class, implode('", "$', $missingConstructorArguments)), 0, null, $missingConstructorArguments, $class);
361
402
}
362
403
363
-
if (\count($context['not_normalizable_value_exceptions'] ?? []) > 0) {
throw NotNormalizableValueException::createForUnexpectedDataType(sprintf('Failed to create object because the class "%s" is not instantiable.', $class), $data, ['unknown'], $context['deserialization_path'] ?? null);
0 commit comments