@@ -74,15 +74,48 @@ internal void Walk(AsyncApiComponents components)
74
74
} ) ;
75
75
76
76
this . Walk ( AsyncApiConstants . ServerBindings , ( ) =>
77
- {
78
- if ( components . ServerBindings != null )
79
- {
80
- foreach ( var item in components . ServerBindings )
81
- {
82
- this . Walk ( item . Key , ( ) => this . Walk ( item . Value , isComponent : true ) ) ;
83
- }
84
- }
85
- } ) ;
77
+ {
78
+ if ( components . ServerBindings != null )
79
+ {
80
+ foreach ( var item in components . ServerBindings )
81
+ {
82
+ this . Walk ( item . Key , ( ) => this . Walk ( item . Value , isComponent : true ) ) ;
83
+ }
84
+ }
85
+ } ) ;
86
+
87
+ this . Walk ( AsyncApiConstants . ChannelBindings , ( ) =>
88
+ {
89
+ if ( components . ChannelBindings != null )
90
+ {
91
+ foreach ( var item in components . ChannelBindings )
92
+ {
93
+ this . Walk ( item . Key , ( ) => this . Walk ( item . Value , isComponent : true ) ) ;
94
+ }
95
+ }
96
+ } ) ;
97
+
98
+ this . Walk ( AsyncApiConstants . OperationBindings , ( ) =>
99
+ {
100
+ if ( components . OperationBindings != null )
101
+ {
102
+ foreach ( var item in components . OperationBindings )
103
+ {
104
+ this . Walk ( item . Key , ( ) => this . Walk ( item . Value , isComponent : true ) ) ;
105
+ }
106
+ }
107
+ } ) ;
108
+
109
+ this . Walk ( AsyncApiConstants . MessageBindings , ( ) =>
110
+ {
111
+ if ( components . MessageBindings != null )
112
+ {
113
+ foreach ( var item in components . MessageBindings )
114
+ {
115
+ this . Walk ( item . Key , ( ) => this . Walk ( item . Value , isComponent : true ) ) ;
116
+ }
117
+ }
118
+ } ) ;
86
119
87
120
this . Walk ( AsyncApiConstants . Parameters , ( ) =>
88
121
{
@@ -562,6 +595,25 @@ internal void Walk(AsyncApiBindings<IServerBinding> serverBindings, bool isCompo
562
595
}
563
596
564
597
this . visitor . Visit ( serverBindings ) ;
598
+ if ( serverBindings != null )
599
+ {
600
+ foreach ( var binding in serverBindings )
601
+ {
602
+ this . visitor . CurrentKeys . ServerBinding = binding . Key ;
603
+ this . Walk ( binding . Key , ( ) => this . Walk ( binding . Value ) ) ;
604
+ this . visitor . CurrentKeys . ServerBinding = null ;
605
+ }
606
+ }
607
+ }
608
+
609
+ internal void Walk ( IServerBinding binding )
610
+ {
611
+ if ( binding == null )
612
+ {
613
+ return ;
614
+ }
615
+
616
+ this . visitor . Visit ( binding ) ;
565
617
}
566
618
567
619
internal void Walk ( AsyncApiBindings < IChannelBinding > channelBindings , bool isComponent = false )
@@ -572,6 +624,25 @@ internal void Walk(AsyncApiBindings<IChannelBinding> channelBindings, bool isCom
572
624
}
573
625
574
626
this . visitor . Visit ( channelBindings ) ;
627
+ if ( channelBindings != null )
628
+ {
629
+ foreach ( var binding in channelBindings )
630
+ {
631
+ this . visitor . CurrentKeys . ChannelBinding = binding . Key ;
632
+ this . Walk ( binding . Key , ( ) => this . Walk ( binding . Value ) ) ;
633
+ this . visitor . CurrentKeys . ChannelBinding = null ;
634
+ }
635
+ }
636
+ }
637
+
638
+ internal void Walk ( IChannelBinding binding )
639
+ {
640
+ if ( binding == null )
641
+ {
642
+ return ;
643
+ }
644
+
645
+ this . visitor . Visit ( binding ) ;
575
646
}
576
647
577
648
internal void Walk ( AsyncApiBindings < IOperationBinding > operationBindings , bool isComponent = false )
@@ -582,6 +653,25 @@ internal void Walk(AsyncApiBindings<IOperationBinding> operationBindings, bool i
582
653
}
583
654
584
655
this . visitor . Visit ( operationBindings ) ;
656
+ if ( operationBindings != null )
657
+ {
658
+ foreach ( var binding in operationBindings )
659
+ {
660
+ this . visitor . CurrentKeys . OperationBinding = binding . Key ;
661
+ this . Walk ( binding . Key , ( ) => this . Walk ( binding . Value ) ) ;
662
+ this . visitor . CurrentKeys . OperationBinding = null ;
663
+ }
664
+ }
665
+ }
666
+
667
+ internal void Walk ( IOperationBinding binding )
668
+ {
669
+ if ( binding == null )
670
+ {
671
+ return ;
672
+ }
673
+
674
+ this . visitor . Visit ( binding ) ;
585
675
}
586
676
587
677
internal void Walk ( AsyncApiBindings < IMessageBinding > messageBindings , bool isComponent = false )
@@ -592,6 +682,25 @@ internal void Walk(AsyncApiBindings<IMessageBinding> messageBindings, bool isCom
592
682
}
593
683
594
684
this . visitor . Visit ( messageBindings ) ;
685
+ if ( messageBindings != null )
686
+ {
687
+ foreach ( var binding in messageBindings )
688
+ {
689
+ this . visitor . CurrentKeys . MessageBinding = binding . Key ;
690
+ this . Walk ( binding . Key , ( ) => this . Walk ( binding . Value ) ) ;
691
+ this . visitor . CurrentKeys . MessageBinding = null ;
692
+ }
693
+ }
694
+ }
695
+
696
+ internal void Walk ( IMessageBinding binding )
697
+ {
698
+ if ( binding == null )
699
+ {
700
+ return ;
701
+ }
702
+
703
+ this . visitor . Visit ( binding ) ;
595
704
}
596
705
597
706
internal void Walk ( IList < AsyncApiMessageExample > examples )
0 commit comments