@@ -219,18 +219,21 @@ describe("composition", () => {
219
219
ctx : {
220
220
...DEFAULT_OPTIONS . ctx ,
221
221
discriminators : {
222
- [ DEFAULT_OPTIONS . path ] : {
223
- propertyName : "operation" ,
224
- mapping : {
225
- test : DEFAULT_OPTIONS . path ,
222
+ objects : {
223
+ [ DEFAULT_OPTIONS . path ] : {
224
+ propertyName : "operation" ,
225
+ mapping : {
226
+ test : DEFAULT_OPTIONS . path ,
227
+ } ,
226
228
} ,
227
- } ,
228
- "#/components/schemas/parent" : {
229
- propertyName : "operation" ,
230
- mapping : {
231
- test : DEFAULT_OPTIONS . path ,
229
+ "#/components/schemas/parent" : {
230
+ propertyName : "operation" ,
231
+ mapping : {
232
+ test : DEFAULT_OPTIONS . path ,
233
+ } ,
232
234
} ,
233
235
} ,
236
+ refsHandled : [ ] ,
234
237
} ,
235
238
resolve ( $ref ) {
236
239
switch ( $ref ) {
@@ -274,15 +277,18 @@ describe("composition", () => {
274
277
ctx : {
275
278
...DEFAULT_OPTIONS . ctx ,
276
279
discriminators : {
277
- "#/components/schemas/Pet" : {
278
- propertyName : "petType" ,
279
- } ,
280
- "#/components/schemas/Cat" : {
281
- propertyName : "petType" ,
282
- } ,
283
- "#/components/schemas/Dog" : {
284
- propertyName : "petType" ,
280
+ objects : {
281
+ "#/components/schemas/Pet" : {
282
+ propertyName : "petType" ,
283
+ } ,
284
+ "#/components/schemas/Cat" : {
285
+ propertyName : "petType" ,
286
+ } ,
287
+ "#/components/schemas/Dog" : {
288
+ propertyName : "petType" ,
289
+ } ,
285
290
} ,
291
+ refsHandled : [ ] ,
286
292
} ,
287
293
resolve ( $ref ) {
288
294
switch ( $ref ) {
@@ -315,12 +321,15 @@ describe("composition", () => {
315
321
ctx : {
316
322
...DEFAULT_OPTIONS . ctx ,
317
323
discriminators : {
318
- [ DEFAULT_OPTIONS . path ] : {
319
- propertyName : "operation" ,
320
- } ,
321
- "#/components/schemas/parent" : {
322
- propertyName : "operation" ,
324
+ objects : {
325
+ [ DEFAULT_OPTIONS . path ] : {
326
+ propertyName : "operation" ,
327
+ } ,
328
+ "#/components/schemas/parent" : {
329
+ propertyName : "operation" ,
330
+ } ,
323
331
} ,
332
+ refsHandled : [ ] ,
324
333
} ,
325
334
resolve ( $ref ) {
326
335
switch ( $ref ) {
@@ -356,18 +365,21 @@ describe("composition", () => {
356
365
ctx : {
357
366
...DEFAULT_OPTIONS . ctx ,
358
367
discriminators : {
359
- "#/components/schemas/schema-object" : {
360
- propertyName : "@type" ,
361
- mapping : {
362
- test : DEFAULT_OPTIONS . path ,
368
+ objects : {
369
+ "#/components/schemas/schema-object" : {
370
+ propertyName : "@type" ,
371
+ mapping : {
372
+ test : DEFAULT_OPTIONS . path ,
373
+ } ,
363
374
} ,
364
- } ,
365
- "#/components/schemas/parent" : {
366
- propertyName : "@type" ,
367
- mapping : {
368
- test : DEFAULT_OPTIONS . path ,
375
+ "#/components/schemas/parent" : {
376
+ propertyName : "@type" ,
377
+ mapping : {
378
+ test : DEFAULT_OPTIONS . path ,
379
+ } ,
369
380
} ,
370
381
} ,
382
+ refsHandled : [ ] ,
371
383
} ,
372
384
resolve ( $ref ) {
373
385
switch ( $ref ) {
@@ -408,12 +420,15 @@ describe("composition", () => {
408
420
ctx : {
409
421
...DEFAULT_OPTIONS . ctx ,
410
422
discriminators : {
411
- "#/components/schemas/Pet" : {
412
- propertyName : "_petType" ,
413
- } ,
414
- "#/components/schemas/Dog" : {
415
- propertyName : "_petType" ,
423
+ objects : {
424
+ "#/components/schemas/Pet" : {
425
+ propertyName : "_petType" ,
426
+ } ,
427
+ "#/components/schemas/Dog" : {
428
+ propertyName : "_petType" ,
429
+ } ,
416
430
} ,
431
+ refsHandled : [ ] ,
417
432
} ,
418
433
resolve ( $ref ) {
419
434
switch ( $ref ) {
0 commit comments