File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Microsoft.OpenApi.Hidi/Formatters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ private void AddAdditionalPropertiesToSchema(ref JsonSchema schema)
205
205
206
206
private static JsonSchema ResolveOneOfSchema ( ref JsonSchema schema )
207
207
{
208
- if ( schema . GetOneOf ( ) ? . FirstOrDefault ( ) is { } newSchema )
208
+ if ( schema . GetOneOf ( ) ? [ 0 ] is { } newSchema )
209
209
{
210
210
var schemaBuilder = BuildSchema ( schema ) ;
211
211
schemaBuilder = schemaBuilder . Remove ( "oneOf" ) ;
@@ -219,7 +219,7 @@ private static JsonSchema ResolveOneOfSchema(ref JsonSchema schema)
219
219
220
220
private static JsonSchema ResolveAnyOfSchema ( ref JsonSchema schema )
221
221
{
222
- if ( schema . GetAnyOf ( ) ? . FirstOrDefault ( ) is { } newSchema )
222
+ if ( schema . GetAnyOf ( ) ? [ 0 ] is { } newSchema )
223
223
{
224
224
var schemaBuilder = BuildSchema ( schema ) ;
225
225
schemaBuilder = schemaBuilder . Remove ( "anyOf" ) ;
You can’t perform that action at this time.
0 commit comments