@@ -112,7 +112,7 @@ describe('TreeModel parser', () => {
112
112
operations,
113
113
} ) ) ;
114
114
115
- expect ( api . operations . GetFoo . input . name ) . toBe ( 'GetFooInput' ) ;
115
+ expect ( api . operations . GetFoo . input . shape . name ) . toBe ( 'GetFooInput' ) ;
116
116
expect ( api . shapes . Date ) . not . toBeDefined ( ) ;
117
117
expect ( api . shapes . _Date ) . toBeDefined ( ) ;
118
118
expect ( api . shapes . Error ) . not . toBeDefined ( ) ;
@@ -150,7 +150,7 @@ describe('TreeModel parser', () => {
150
150
shapes,
151
151
} ) ) ;
152
152
153
- const { members} = api . operations . GetFoo . output ;
153
+ const { members} = api . operations . GetFoo . output . shape ;
154
154
Object . keys ( members ) . forEach ( memberName => {
155
155
expect ( members [ memberName ] . shape . sensitive ) . toBe ( true ) ;
156
156
} ) ;
@@ -185,7 +185,7 @@ describe('TreeModel parser', () => {
185
185
} ,
186
186
} ) ) ;
187
187
188
- const { shape} = api . operations . GetFoo . output . members . foo ;
188
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
189
189
expect ( ( shape as List ) . min ) . toBe ( 10 ) ;
190
190
} ) ;
191
191
@@ -216,7 +216,7 @@ describe('TreeModel parser', () => {
216
216
} ,
217
217
} ) ) ;
218
218
219
- const { shape} = api . operations . GetFoo . output . members . foo ;
219
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
220
220
expect ( ( shape as Number ) . min ) . toBe ( 10 ) ;
221
221
} ) ;
222
222
@@ -247,7 +247,7 @@ describe('TreeModel parser', () => {
247
247
} ,
248
248
} ) ) ;
249
249
250
- const { shape} = api . operations . GetFoo . output . members . foo ;
250
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
251
251
expect ( ( shape as String ) . min ) . toBe ( 10 ) ;
252
252
} ) ;
253
253
@@ -280,7 +280,7 @@ describe('TreeModel parser', () => {
280
280
} ,
281
281
} ) ) ;
282
282
283
- const { shape} = api . operations . GetFoo . output . members . foo ;
283
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
284
284
expect ( ( shape as List ) . flattened ) . toBe ( true ) ;
285
285
} ) ;
286
286
@@ -315,7 +315,7 @@ describe('TreeModel parser', () => {
315
315
} ,
316
316
} ) ) ;
317
317
318
- const { shape} = api . operations . GetFoo . output . members . foo ;
318
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
319
319
expect ( ( shape as Map ) . flattened ) . toBe ( true ) ;
320
320
} ) ;
321
321
@@ -350,7 +350,7 @@ describe('TreeModel parser', () => {
350
350
} ,
351
351
} ) ) ;
352
352
353
- const { shape} = api . operations . GetFoo . output . members . foo ;
353
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
354
354
expect ( ( shape as Map ) . flattened ) . toBe ( true ) ;
355
355
} ) ;
356
356
@@ -381,7 +381,7 @@ describe('TreeModel parser', () => {
381
381
} ,
382
382
} ) ) ;
383
383
384
- const { shape} = api . operations . GetFoo . output . members . foo ;
384
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
385
385
expect ( ( shape as String ) . jsonValue ) . toBe ( true ) ;
386
386
} ) ;
387
387
@@ -412,7 +412,7 @@ describe('TreeModel parser', () => {
412
412
} ,
413
413
} ) ) ;
414
414
415
- const { shape} = api . operations . GetFoo . output . members . foo ;
415
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
416
416
expect ( ( shape as String ) . idempotencyToken ) . toBe ( true ) ;
417
417
} ) ;
418
418
@@ -443,7 +443,7 @@ describe('TreeModel parser', () => {
443
443
} ,
444
444
} ) ) ;
445
445
446
- const { shape} = api . operations . GetFoo . output . members . foo ;
446
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
447
447
expect ( ( shape as TreeModelString ) . enum ) . toEqual ( [ 'fizz' , 'buzz' , 'pop' ] ) ;
448
448
} ) ;
449
449
@@ -474,7 +474,7 @@ describe('TreeModel parser', () => {
474
474
} ,
475
475
} ) ) ;
476
476
477
- const { shape} = api . operations . GetFoo . output . members . foo ;
477
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
478
478
expect ( ( shape as Blob ) . streaming ) . toBe ( true ) ;
479
479
} ) ;
480
480
@@ -505,7 +505,7 @@ describe('TreeModel parser', () => {
505
505
} ,
506
506
} ) ) ;
507
507
508
- const { shape} = api . operations . GetFoo . output . members . foo ;
508
+ const { shape} = api . operations . GetFoo . output . shape . members . foo ;
509
509
expect ( ( shape as Timestamp ) . timestampFormat ) . toBe ( 'atom' ) ;
510
510
} ) ;
511
511
@@ -537,7 +537,7 @@ describe('TreeModel parser', () => {
537
537
} ,
538
538
} ) ) ;
539
539
540
- expect ( api . operations . GetFoo . output . required ) . toEqual ( [ 'foo' ] ) ;
540
+ expect ( api . operations . GetFoo . output . shape . required ) . toEqual ( [ 'foo' ] ) ;
541
541
} ) ;
542
542
543
543
it ( 'should preserve payload traits on structures' , ( ) => {
@@ -568,7 +568,7 @@ describe('TreeModel parser', () => {
568
568
} ,
569
569
} ) ) ;
570
570
571
- expect ( api . operations . GetFoo . output . payload ) . toEqual ( 'foo' ) ;
571
+ expect ( api . operations . GetFoo . output . shape . payload ) . toEqual ( 'foo' ) ;
572
572
} ) ;
573
573
574
574
it ( 'should preserve exception traits on structures' , ( ) => {
@@ -595,7 +595,7 @@ describe('TreeModel parser', () => {
595
595
} ,
596
596
} ) ) ;
597
597
598
- expect ( api . operations . GetFoo . errors [ 0 ] . exception ) . toEqual ( true ) ;
598
+ expect ( api . operations . GetFoo . errors [ 0 ] . shape . exception ) . toEqual ( true ) ;
599
599
} ) ;
600
600
601
601
it ( 'should preserve error codes on structures' , ( ) => {
@@ -623,7 +623,8 @@ describe('TreeModel parser', () => {
623
623
} ,
624
624
} ) ) ;
625
625
626
- expect ( api . operations . GetFoo . errors [ 0 ] . exceptionCode ) . toEqual ( 'PANIC' ) ;
626
+ expect ( api . operations . GetFoo . errors [ 0 ] . shape . exceptionCode )
627
+ . toEqual ( 'PANIC' ) ;
627
628
} ) ;
628
629
629
630
it ( 'should standardize xmlNamespace traits on structures' , ( ) => {
@@ -666,11 +667,11 @@ describe('TreeModel parser', () => {
666
667
} ,
667
668
} ) ) ;
668
669
669
- expect ( api . operations . GetFoo . output . members . foo . xmlNamespace )
670
+ expect ( api . operations . GetFoo . output . shape . members . foo . xmlNamespace )
670
671
. toEqual ( { uri : xmlNamespace . uri } ) ;
671
- expect ( api . operations . GetFoo . output . members . bar . xmlNamespace )
672
+ expect ( api . operations . GetFoo . output . shape . members . bar . xmlNamespace )
672
673
. toEqual ( xmlNamespace ) ;
673
- expect ( api . operations . GetFoo . output . members . baz . xmlNamespace )
674
+ expect ( api . operations . GetFoo . output . shape . members . baz . xmlNamespace )
674
675
. toBeUndefined ( ) ;
675
676
} ) ;
676
677
@@ -702,7 +703,7 @@ describe('TreeModel parser', () => {
702
703
} ,
703
704
} ) ) ;
704
705
705
- const { shape} = ( api . operations . GetFoo . output . members . foo . shape as TreeModelList ) . member ;
706
+ const { shape} = ( api . operations . GetFoo . output . shape . members . foo . shape as TreeModelList ) . member ;
706
707
expect ( shape ) . toBe ( api . shapes [ shape . name ] ) ;
707
708
} ) ;
708
709
@@ -736,7 +737,7 @@ describe('TreeModel parser', () => {
736
737
} ,
737
738
} ) ) ;
738
739
739
- const map = api . operations . GetFoo . output . members . foo . shape as TreeModelMap ;
740
+ const map = api . operations . GetFoo . output . shape . members . foo . shape as TreeModelMap ;
740
741
expect ( map . key . shape ) . toBe ( api . shapes [ map . key . shape . name ] ) ;
741
742
expect ( map . value . shape ) . toBe ( api . shapes [ map . value . shape . name ] ) ;
742
743
} ) ;
@@ -767,7 +768,7 @@ describe('TreeModel parser', () => {
767
768
shapes,
768
769
} ) ) ;
769
770
770
- const { members} = api . operations . GetFoo . output ;
771
+ const { members} = api . operations . GetFoo . output . shape ;
771
772
for ( let memberName of Object . keys ( members ) ) {
772
773
const member = members [ memberName ] ;
773
774
expect ( member . shape ) . toBe ( api . shapes [ member . shape . name ] ) ;
@@ -805,7 +806,7 @@ describe('TreeModel parser', () => {
805
806
} ,
806
807
} ) ) ;
807
808
808
- expect ( api . operations . GetFoo . output . members . foo . documentation )
809
+ expect ( api . operations . GetFoo . output . shape . members . foo . documentation )
809
810
. toEqual ( 'foo member of GetFooOutput' ) ;
810
811
} ) ;
811
812
} ) ;
0 commit comments