File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ Feature: Documentation support
49
49
And the OpenAPI class "CustomNormalizedDummy-output" exists
50
50
And the OpenAPI class "CustomWritableIdentifierDummy" exists
51
51
And the OpenAPI class "Dummy" exists
52
+ And the OpenAPI class "Dummy.jsonld" exists
53
+ And the OpenAPI class "Dummy.jsonld.input" exists
52
54
And the OpenAPI class "DummyBoolean" exists
53
55
And the OpenAPI class "RelatedDummy" exists
54
56
And the OpenAPI class "DummyTableInheritance" exists
@@ -80,7 +82,11 @@ Feature: Documentation support
80
82
And the JSON node "paths./api/custom-call/{id}.put" should exist
81
83
# Properties
82
84
And the "id" property exists for the OpenAPI class "Dummy"
83
- And the "name" property is required for the OpenAPI class "Dummy.jsonld"
85
+ And the "name" property is required for the OpenAPI class "Dummy"
86
+ And the JSON node "components.schemas.Dummy\. jsonld.allOf[0].$ref" should be equal to "#/components/schemas/HydraOutputBaseSchema"
87
+ And the JSON node "components.schemas.Dummy\. jsonld.allOf[1].$ref" should be equal to "#/components/schemas/Dummy"
88
+ And the JSON node "components.schemas.Dummy\. jsonld\. input.allOf[0].$ref" should be equal to "#/components/schemas/HydraItemBaseSchema"
89
+ And the JSON node "components.schemas.Dummy\. jsonld\. input.allOf[1].$ref" should be equal to "#/components/schemas/Dummy"
84
90
And the "genderType" property exists for the OpenAPI class "Person"
85
91
And the "genderType" property for the OpenAPI class "Person" should be equal to:
86
92
"""
Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ public function assertThePropertyIsRequiredForTheOpenAPIClass(string $propertyNa
106
106
break ;
107
107
}
108
108
}
109
+ } else {
110
+ $ ok = isset ($ schema ->required ) && \in_array ($ propertyName , $ schema ->required , true );
109
111
}
110
112
111
113
if (!$ ok ) {
You can’t perform that action at this time.
0 commit comments