fix(hydra): rdfs:label should not duplicate title · api-platform/core@3e160bf · GitHub
Skip to content

Commit 3e160bf

Browse files
committed
fix(hydra): rdfs:label should not duplicate title
1 parent 01fd742 commit 3e160bf

14 files changed

Lines changed: 252 additions & 411 deletions

File tree

‎features/hydra/docs.feature‎

Lines changed: 11 additions & 10 deletions

‎features/hydra/error.feature‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ Feature: Error handling
3737
And the JSON should be equal to:
3838
"""
3939
{
40-
"@context": "/contexts/ConstraintViolationList",
40+
"@context": "/contexts/ConstraintViolation",
4141
"@id": "/validation_errors/c1051bb4-d103-4f74-8988-acbcafc7fdc3",
42-
"@type": "ConstraintViolationList",
42+
"@type": "ConstraintViolation",
4343
"status": 422,
4444
"violations": [
4545
{

‎features/main/validation.feature‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ Feature: Using validations groups
2929
And the JSON should be a superset of:
3030
"""
3131
{
32-
"@context": "/contexts/ConstraintViolationList",
33-
"@type": "ConstraintViolationList",
32+
"@context": "/contexts/ConstraintViolation",
33+
"@type": "ConstraintViolation",
3434
"title": "An error occurred",
3535
"description": "name: This value should not be null.",
3636
"violations": [
@@ -58,8 +58,8 @@ Feature: Using validations groups
5858
And the JSON should be a superset of:
5959
"""
6060
{
61-
"@context": "/contexts/ConstraintViolationList",
62-
"@type": "ConstraintViolationList",
61+
"@context": "/contexts/ConstraintViolation",
62+
"@type": "ConstraintViolation",
6363
"title": "An error occurred",
6464
"description": "title: This value should not be null.",
6565
"violations": [
@@ -111,8 +111,8 @@ Feature: Using validations groups
111111
And the JSON should be a superset of:
112112
"""
113113
{
114-
"@context": "/contexts/ConstraintViolationList",
115-
"@type": "ConstraintViolationList",
114+
"@context": "/contexts/ConstraintViolation",
115+
"@type": "ConstraintViolation",
116116
"hydra:title": "An error occurred",
117117
"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.",
118118
"violations": [

‎src/Hydra/Serializer/DocumentationNormalizer.php‎

Lines changed: 46 additions & 57 deletions

0 commit comments

Comments
 (0)