File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed
src/Microsoft.OpenApi.Readers/V2 Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -105,47 +105,6 @@ private static void ProcessAnyListFields<T>(
105105 }
106106 }
107107
108- private static void ProcessAnyMapFields < T , U > (
109- MapNode mapNode ,
110- T domainObject ,
111- AnyMapFieldMap < T , U > anyMapFieldMap )
112- {
113- foreach ( var anyMapFieldName in anyMapFieldMap . Keys . ToList ( ) )
114- {
115- try
116- {
117- var newProperty = new List < IOpenApiAny > ( ) ;
118-
119- mapNode . Context . StartObject ( anyMapFieldName ) ;
120-
121- foreach ( var propertyMapElement in anyMapFieldMap [ anyMapFieldName ] . PropertyMapGetter ( domainObject ) )
122- {
123- if ( propertyMapElement . Value != null )
124- {
125- mapNode . Context . StartObject ( propertyMapElement . Key ) ;
126-
127- var any = anyMapFieldMap [ anyMapFieldName ] . PropertyGetter ( propertyMapElement . Value ) ;
128-
129- var newAny = OpenApiAnyConverter . GetSpecificOpenApiAny (
130- any ,
131- anyMapFieldMap [ anyMapFieldName ] . SchemaGetter ( domainObject ) ) ;
132-
133- anyMapFieldMap [ anyMapFieldName ] . PropertySetter ( propertyMapElement . Value , newAny ) ;
134- }
135- }
136- }
137- catch ( OpenApiException exception )
138- {
139- exception . Pointer = mapNode . Context . GetLocation ( ) ;
140- mapNode . Context . Diagnostic . Errors . Add ( new OpenApiError ( exception ) ) ;
141- }
142- finally
143- {
144- mapNode . Context . EndObject ( ) ;
145- }
146- }
147- }
148-
149108 public static IOpenApiAny LoadAny ( ParseNode node )
150109 {
151110 return OpenApiAnyConverter . GetSpecificOpenApiAny ( node . CreateAny ( ) ) ;
You can’t perform that action at this time.
0 commit comments