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
feat(jsonschema): make JSON-LD specific properties required (#6366)
* feat(jsonschema): for JSON-LD, output the input and output schemas with different keys
* feat(jsonschema): make JSON-LD specific properties required
* fix exsistent tests
* Update src/Hydra/JsonSchema/SchemaFactory.php
Co-authored-by: Antoine Bluchet <[email protected]>
* refactor: reduce complexity
* docs: remove unnecessary comments
* fix: make JSON-LD specific properties non-readOnly and make them required only in output schema
---------
Co-authored-by: Antoine Bluchet <[email protected]>
Copy file name to clipboardExpand all lines: features/openapi/docs.feature
+4-4
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ Feature: Documentation support
153
153
And the JSON node "paths./related_dummies/{id}/related_to_dummy_friends.get.parameters" should have 6 elements
154
154
155
155
# Subcollection - check schema
156
-
And the JSON node "paths./related_dummies/{id}/related_to_dummy_friends.get.responses.200.content.application/ld+json.schema.properties.hydra:member.items.$ref" should be equal to "#/components/schemas/RelatedToDummyFriend.jsonld-fakemanytomany"
156
+
And the JSON node "paths./related_dummies/{id}/related_to_dummy_friends.get.responses.200.content.application/ld+json.schema.properties.hydra:member.items.$ref" should be equal to "#/components/schemas/RelatedToDummyFriend.jsonld-fakemanytomany.output"
157
157
158
158
# Deprecations
159
159
And the JSON node "paths./dummies.get.deprecated" should be false
@@ -165,8 +165,8 @@ Feature: Documentation support
165
165
And the JSON node "paths./deprecated_resources/{id}.patch.deprecated" should be true
166
166
167
167
# Formats
168
-
And the OpenAPI class "Dummy.jsonld" exists
169
-
And the "@id" property exists for the OpenAPI class "Dummy.jsonld"
168
+
And the OpenAPI class "Dummy.jsonld.output" exists
169
+
And the "@id" property exists for the OpenAPI class "Dummy.jsonld.output"
170
170
And the JSON node "paths./dummies.get.responses.200.content.application/ld+json" should be equal to:
171
171
"""
172
172
{
@@ -176,7 +176,7 @@ Feature: Documentation support
0 commit comments