@@ -35,22 +35,16 @@ Feature: DTO input and output
3535 Then the response status code should be 200
3636 And the response should be in JSON
3737 And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
38- And the JSON should be a superset of :
38+ And the JSON should be equal to :
3939 """
4040 {
4141 "@context": {
4242 "@vocab": "http://example.com/docs.jsonld#",
4343 "hydra": "http://www.w3.org/ns/hydra/core#",
44- "foo": {
45- "@id": "/dummy_dto_customs/1/foo",
46- "@type": "@id"
47- },
48- "bar": {
49- "@id": "/dummy_dto_customs/1/bar",
50- "@type": "@id"
51- }
44+ "foo": "CustomOutputDto/foo",
45+ "bar": "CustomOutputDto/bar"
5246 },
53- "@type": "CustomOutputDto ",
47+ "@type": "DummyDtoCustom ",
5448 "@id": "/dummy_dto_customs/1",
5549 "foo": "test",
5650 "bar": 1
@@ -64,7 +58,7 @@ Feature: DTO input and output
6458 Then the response status code should be 200
6559 And the response should be in JSON
6660 And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
67- And the JSON should be a superset of :
61+ And the JSON should be equal to :
6862 """
6963 {
7064 "@context": "/contexts/DummyDtoCustom",
@@ -110,20 +104,19 @@ Feature: DTO input and output
110104 }
111105 """
112106 Then the response status code should be 201
113- And the JSON should be a superset of :
107+ And the JSON should be equal to :
114108 """
115109 {
116110 "@context": {
117111 "@vocab": "http://example.com/docs.jsonld#",
118112 "hydra": "http://www.w3.org/ns/hydra/core#",
119- "baz": {
120- "@type": "@id"
121- },
122- "bat": {
123- "@type": "@id"
124- }
113+ "id": "OutputDto/id",
114+ "baz": "OutputDto/baz",
115+ "bat": "OutputDto/bat"
125116 },
126- "@type": "OutputDto",
117+ "@type": "DummyDtoInputOutput",
118+ "@id": "/dummy_dto_input_outputs/1",
119+ "id": 1,
127120 "baz": 1,
128121 "bat": "test"
129122 }
@@ -137,20 +130,19 @@ Feature: DTO input and output
137130 }
138131 """
139132 Then the response status code should be 200
140- And the JSON should be a superset of :
133+ And the JSON should be equal to :
141134 """
142135 {
143136 "@context": {
144- "@vocab": "http:\/\/example.com\/docs.jsonld#",
145- "hydra": "http:\/\/www.w3.org\/ns\/hydra\/core#",
146- "baz": {
147- "@type": "@id"
148- },
149- "bat": {
150- "@type": "@id"
151- }
137+ "@vocab": "http://example.com/docs.jsonld#",
138+ "hydra": "http://www.w3.org/ns/hydra/core#",
139+ "id": "OutputDto/id",
140+ "baz": "OutputDto/baz",
141+ "bat": "OutputDto/bat"
152142 },
153- "@type": "OutputDto",
143+ "@type": "DummyDtoInputOutput",
144+ "@id": "/dummy_dto_input_outputs/1",
145+ "id": 1,
154146 "baz": 2,
155147 "bat": "test"
156148 }
@@ -177,17 +169,16 @@ Feature: DTO input and output
177169 }
178170 """
179171 Then the response status code should be 200
180- And the JSON should be a superset of :
172+ And the JSON should be equal to :
181173 """
182174 {
183175 "@context": {
184176 "@vocab": "http://example.com/docs.jsonld#",
185177 "hydra": "http://www.w3.org/ns/hydra/core#",
186- "dummy": {
187- "@type": "@id"
188- }
178+ "dummy": "RecoverPasswordOutput/dummy"
189179 },
190- "@type": "RecoverPasswordOutput",
180+ "@type": "User",
181+ "@id": "/users/1",
191182 "dummy": "/dummies/1"
192183 }
193184 """
@@ -203,20 +194,19 @@ Feature: DTO input and output
203194 }
204195 """
205196 Then the response status code should be 201
206- And the JSON should be a superset of :
197+ And the JSON should be equal to :
207198 """
208199 {
209200 "@context": {
210201 "@vocab": "http://example.com/docs.jsonld#",
211202 "hydra": "http://www.w3.org/ns/hydra/core#",
212- "baz": {
213- "@type": "@id"
214- },
215- "bat": {
216- "@type": "@id"
217- }
203+ "id": "OutputDto/id",
204+ "baz": "OutputDto/baz",
205+ "bat": "OutputDto/bat"
218206 },
219- "@type": "OutputDto",
207+ "@type": "DummyDtoInputOutput",
208+ "@id": "/dummy_dto_input_outputs/1",
209+ "id": 1,
220210 "baz": 1,
221211 "bat": "test"
222212 }
0 commit comments