Skip to content

Commit 23919e0

Browse files
committed
chore: fix failing tests
1 parent addb003 commit 23919e0

9 files changed

+526
-589
lines changed

test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
391391
""$ref"": ""#/components/schemas/microsoft.graph.userInsightsSettings""
392392
},
393393
{
394-
""type"": ""object"",
395394
""nullable"": true
396395
}
397396
],
@@ -404,7 +403,6 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
404403
""$ref"": ""#/components/schemas/microsoft.graph.contactMergeSuggestions""
405404
},
406405
{
407-
""type"": ""object"",
408406
""nullable"": true
409407
}
410408
],
@@ -417,7 +415,6 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
417415
""$ref"": ""#/components/schemas/microsoft.graph.regionalAndLanguageSettings""
418416
},
419417
{
420-
""type"": ""object"",
421418
""nullable"": true
422419
}
423420
],
@@ -430,7 +427,6 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
430427
""$ref"": ""#/components/schemas/microsoft.graph.shiftPreferences""
431428
},
432429
{
433-
""type"": ""object"",
434430
""nullable"": true
435431
}
436432
],
@@ -926,7 +922,6 @@ public async Task CreatePropertySchemaForNullableEnumPropertyReturnSchema(OpenAp
926922
"$ref": "#/components/schemas/DefaultNs.Color"
927923
},
928924
{
929-
"type": "object",
930925
"nullable": true
931926
}
932927
],

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,11 @@ definitions:
680680
type: object
681681
ReferenceNumeric:
682682
type: string
683-
x-nullable: true
684683
enum:
685684
- '-INF'
686685
- INF
687686
- NaN
687+
x-nullable: true
688688
DefaultNs.Color:
689689
type: string
690690
description: Enum type 'Color' description.

test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ definitions:
7171
type: object
7272
ReferenceNumeric:
7373
type: string
74-
x-nullable: true
7574
enum:
7675
- '-INF'
7776
- INF
7877
- NaN
78+
x-nullable: true
7979
parameters:
8080
top:
8181
in: query

0 commit comments

Comments
 (0)