@@ -21,54 +21,61 @@ public function testGenerateMovie(): void
2121 [
2222 'type ' => 'object ' ,
2323 'properties ' => [
24- 'title ' => [
25- 'title ' => 'Title ' ,
24+ 'title ' => [
25+ 'title ' => 'Title ' ,
2626 'description ' => 'The title of the movie ' ,
27- 'type ' => 'string ' ,
27+ 'type ' => 'string ' ,
2828 ],
29- 'year ' => [
30- 'title ' => 'Year ' ,
29+ 'year ' => [
30+ 'title ' => 'Year ' ,
3131 'description ' => 'The year of the movie ' ,
32- 'type ' => 'integer ' ,
32+ 'type ' => 'integer ' ,
3333 ],
34- 'description ' => [
35- 'title ' => 'Description ' ,
34+ 'description ' => [
35+ 'title ' => 'Description ' ,
3636 'description ' => 'The description of the movie ' ,
37- 'oneOf ' => [
37+ 'oneOf ' => [
3838 ['type ' => 'null ' ],
3939 ['type ' => 'string ' ],
4040 ],
4141 ],
42- 'director ' => [
42+ 'director ' => [
4343 'oneOf ' => [
4444 ['type ' => 'null ' ],
4545 ['type ' => 'string ' ],
4646 ],
4747 ],
4848 'releaseStatus ' => [
49- 'title ' => 'Release Status ' ,
49+ 'title ' => 'Release Status ' ,
5050 'description ' => 'The release status of the movie ' ,
51- 'oneOf ' => [
51+ 'oneOf ' => [
5252 [
5353 'type ' => 'string ' ,
54- 'enum ' => ['Released ' , 'Rumored ' , 'Post Production ' , 'In Production ' , 'Planned ' , 'Canceled ' ],
54+ 'enum ' => [
55+ 'Released ' ,
56+ 'Rumored ' ,
57+ 'Post Production ' ,
58+ 'In Production ' ,
59+ 'Planned ' ,
60+ 'Canceled ' ,
61+ ],
5562 ],
5663 [
5764 'type ' => 'null ' ,
5865 ],
5966 ],
6067 ],
61- 'releaseDate ' => [
62- 'oneOf ' => [
68+ 'releaseDate ' => [
69+ 'oneOf ' => [
6370 ['type ' => 'null ' ],
6471 ['type ' => 'string ' ],
6572 ],
66- 'format ' => 'date ' ,
67- 'title ' => 'Release date ' ,
73+ 'format ' => 'date ' ,
74+ 'title ' => 'Release date ' ,
6875 'description ' => 'The release date of the movie ' ,
6976 ],
7077 ],
71- 'required ' => [
78+ 'required ' => [
7279 'title ' ,
7380 'year ' ,
7481 ],
@@ -85,31 +92,31 @@ public function testGenerateActor(): void
8592 $ this ->assertEquals (
8693 [
8794 'type ' => 'object ' ,
88- 'properties ' => [
95+ 'properties ' => [
8996 'name ' => [
90- 'type ' => 'string ' ,
91- 'title ' => 'Name ' ,
97+ 'type ' => 'string ' ,
98+ 'title ' => 'Name ' ,
9299 'description ' => 'The name of the actor ' ,
93100 ],
94101 'age ' => [
95- 'type ' => 'integer ' ,
96- 'title ' => 'Age ' ,
102+ 'type ' => 'integer ' ,
103+ 'title ' => 'Age ' ,
97104 'description ' => 'The age of the actor ' ,
98105 ],
99106 'bio ' => [
100- 'title ' => 'Biography ' ,
107+ 'title ' => 'Biography ' ,
101108 'description ' => 'The biography of the actor ' ,
102- 'oneOf ' => [
109+ 'oneOf ' => [
103110 ['type ' => 'null ' ],
104111 ['type ' => 'string ' ],
105112 ],
106113 ],
107114 'filmography ' => [
108- 'title ' => 'Filmography ' ,
115+ 'title ' => 'Filmography ' ,
109116 'description ' => 'List of movies and series featuring the actor ' ,
110- 'oneOf ' => [
117+ 'oneOf ' => [
111118 [
112- 'type ' => 'array ' ,
119+ 'type ' => 'array ' ,
113120 'items ' => [
114121 'anyOf ' => [
115122 ['$ref ' => '#/definitions/Movie ' ],
@@ -121,17 +128,17 @@ public function testGenerateActor(): void
121128 ],
122129 ],
123130 'bestMovie ' => [
124- 'title ' => 'Best Movie ' ,
131+ 'title ' => 'Best Movie ' ,
125132 'description ' => 'The best movie of the actor ' ,
126- 'oneOf ' => [
133+ 'oneOf ' => [
127134 ['$ref ' => '#/definitions/Movie ' ],
128135 ['type ' => 'null ' ],
129136 ],
130137 ],
131138 'bestSeries ' => [
132- 'title ' => 'Best Series ' ,
139+ 'title ' => 'Best Series ' ,
133140 'description ' => 'The most prominent series of the actor ' ,
134- 'oneOf ' => [
141+ 'oneOf ' => [
135142 ['$ref ' => '#/definitions/Series ' ],
136143 ['type ' => 'null ' ],
137144 ],
@@ -143,23 +150,23 @@ public function testGenerateActor(): void
143150 ],
144151 'definitions ' => [
145152 'Movie ' => [
146- 'title ' => 'Movie ' ,
147- 'type ' => 'object ' ,
153+ 'title ' => 'Movie ' ,
154+ 'type ' => 'object ' ,
148155 'properties ' => [
149156 'title ' => [
150- 'title ' => 'Title ' ,
157+ 'title ' => 'Title ' ,
151158 'description ' => 'The title of the movie ' ,
152- 'type ' => 'string ' ,
159+ 'type ' => 'string ' ,
153160 ],
154161 'year ' => [
155- 'title ' => 'Year ' ,
162+ 'title ' => 'Year ' ,
156163 'description ' => 'The year of the movie ' ,
157- 'type ' => 'integer ' ,
164+ 'type ' => 'integer ' ,
158165 ],
159166 'description ' => [
160- 'title ' => 'Description ' ,
167+ 'title ' => 'Description ' ,
161168 'description ' => 'The description of the movie ' ,
162- 'oneOf ' => [
169+ 'oneOf ' => [
163170 ['type ' => 'null ' ],
164171 ['type ' => 'string ' ],
165172 ],
@@ -171,18 +178,18 @@ public function testGenerateActor(): void
171178 ],
172179 ],
173180 'releaseDate ' => [
174- 'title ' => 'Release date ' ,
181+ 'title ' => 'Release date ' ,
175182 'description ' => 'The release date of the movie ' ,
176- 'oneOf ' => [
183+ 'oneOf ' => [
177184 ['type ' => 'null ' ],
178185 ['type ' => 'string ' ],
179186 ],
180187 'format ' => 'date ' ,
181188 ],
182189 'releaseStatus ' => [
183- 'title ' => 'Release Status ' ,
190+ 'title ' => 'Release Status ' ,
184191 'description ' => 'The release status of the movie ' ,
185- 'oneOf ' => [
192+ 'oneOf ' => [
186193 [
187194 'type ' => 'string ' ,
188195 'enum ' => [
@@ -201,39 +208,39 @@ public function testGenerateActor(): void
201208 'required ' => ['title ' , 'year ' ],
202209 ],
203210 'Series ' => [
204- 'title ' => 'Series ' ,
205- 'type ' => 'object ' ,
211+ 'title ' => 'Series ' ,
212+ 'type ' => 'object ' ,
206213 'properties ' => [
207214 'title ' => [
208- 'title ' => 'Title ' ,
215+ 'title ' => 'Title ' ,
209216 'description ' => 'The title of the series ' ,
210- 'type ' => 'string ' ,
217+ 'type ' => 'string ' ,
211218 ],
212219 'firstAirYear ' => [
213- 'title ' => 'First Air Year ' ,
220+ 'title ' => 'First Air Year ' ,
214221 'description ' => 'The year the series first aired ' ,
215- 'type ' => 'integer ' ,
222+ 'type ' => 'integer ' ,
216223 ],
217224 'description ' => [
218- 'title ' => 'Description ' ,
225+ 'title ' => 'Description ' ,
219226 'description ' => 'The description of the series ' ,
220- 'oneOf ' => [
227+ 'oneOf ' => [
221228 ['type ' => 'null ' ],
222229 ['type ' => 'string ' ],
223230 ],
224231 ],
225232 'creator ' => [
226- 'title ' => 'Creator ' ,
233+ 'title ' => 'Creator ' ,
227234 'description ' => 'The creator or showrunner of the series ' ,
228- 'oneOf ' => [
235+ 'oneOf ' => [
229236 ['type ' => 'null ' ],
230237 ['type ' => 'string ' ],
231238 ],
232239 ],
233240 'status ' => [
234- 'title ' => 'Series Status ' ,
241+ 'title ' => 'Series Status ' ,
235242 'description ' => 'The current status of the series ' ,
236- 'oneOf ' => [
243+ 'oneOf ' => [
237244 [
238245 'type ' => 'string ' ,
239246 'enum ' => [
@@ -248,27 +255,27 @@ public function testGenerateActor(): void
248255 ],
249256 ],
250257 'firstAirDate ' => [
251- 'title ' => 'First Air Date ' ,
258+ 'title ' => 'First Air Date ' ,
252259 'description ' => 'The original release date of the series ' ,
253- 'format ' => 'date ' ,
254- 'oneOf ' => [
260+ 'format ' => 'date ' ,
261+ 'oneOf ' => [
255262 ['type ' => 'null ' ],
256263 ['type ' => 'string ' ],
257264 ],
258265 ],
259266 'lastAirDate ' => [
260- 'title ' => 'Last Air Date ' ,
267+ 'title ' => 'Last Air Date ' ,
261268 'description ' => 'The most recent air date of the series ' ,
262- 'format ' => 'date ' ,
263- 'oneOf ' => [
269+ 'format ' => 'date ' ,
270+ 'oneOf ' => [
264271 ['type ' => 'null ' ],
265272 ['type ' => 'string ' ],
266273 ],
267274 ],
268275 'seasons ' => [
269- 'title ' => 'Seasons ' ,
276+ 'title ' => 'Seasons ' ,
270277 'description ' => 'Number of seasons released ' ,
271- 'oneOf ' => [
278+ 'oneOf ' => [
272279 ['type ' => 'integer ' ],
273280 ['type ' => 'null ' ],
274281 ],
0 commit comments