Skip to content

Commit c21c604

Browse files
committed
[Hydra] ConstraintViolationList documentation fix
1 parent d1ed657 commit c21c604

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Hydra/Serializer/DocumentationNormalizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,13 @@ private function getClasses(array $entrypointProperties, array $classes): array
396396
[
397397
'@type' => 'hydra:SupportedProperty',
398398
'hydra:property' => [
399-
'@id' => '#ConstraintViolationList/violation',
399+
'@id' => '#ConstraintViolationList/violations',
400400
'@type' => 'rdf:Property',
401-
'rdfs:label' => 'violation',
401+
'rdfs:label' => 'violations',
402402
'domain' => '#ConstraintViolationList',
403403
'range' => '#ConstraintViolation',
404404
],
405-
'hydra:title' => 'violation',
405+
'hydra:title' => 'violations',
406406
'hydra:description' => 'The violations',
407407
'hydra:readable' => true,
408408
'hydra:writable' => false,

tests/Hydra/Serializer/DocumentationNormalizerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ public function testNormalize()
248248
0 => [
249249
'@type' => 'hydra:SupportedProperty',
250250
'hydra:property' => [
251-
'@id' => '#ConstraintViolationList/violation',
251+
'@id' => '#ConstraintViolationList/violations',
252252
'@type' => 'rdf:Property',
253-
'rdfs:label' => 'violation',
253+
'rdfs:label' => 'violations',
254254
'domain' => '#ConstraintViolationList',
255255
'range' => '#ConstraintViolation',
256256
],
257-
'hydra:title' => 'violation',
257+
'hydra:title' => 'violations',
258258
'hydra:description' => 'The violations',
259259
'hydra:readable' => true,
260260
'hydra:writable' => false,

0 commit comments

Comments
 (0)