Skip to content

Commit 2521785

Browse files
Copilotbaywet
andauthored
Revert test source updates
Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
1 parent f04e520 commit 2521785

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

test/Microsoft.OpenAPI.OData.Reader.Tests/EdmModelOpenApiExtensionsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void AssertDocumentsAreEqual(string result, string fileName, string form
143143
{
144144
_output.WriteLine(result);
145145
var expected = Resources.GetString(fileName);
146-
if (format is "json" && !fileName.Contains(".V2."))
146+
if (format is "json")
147147
{
148148
var parsedJson = JsonNode.Parse(result);
149149
Assert.True(JsonNode.DeepEquals(JsonNode.Parse(expected), parsedJson));

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,7 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
393393
"$ref": "#/components/schemas/microsoft.graph.userInsightsSettings"
394394
},
395395
{
396-
"enum": [null],
397-
"nullable": true
396+
"enum": [null]
398397
}
399398
],
400399
"description": "The user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property.",
@@ -406,8 +405,7 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
406405
"$ref": "#/components/schemas/microsoft.graph.contactMergeSuggestions"
407406
},
408407
{
409-
"enum": [null],
410-
"nullable": true
408+
"enum": [null]
411409
}
412410
],
413411
"description": "The user's settings for the visibility of merge suggestion for the duplicate contacts in the user's contact list.",
@@ -419,8 +417,7 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
419417
"$ref": "#/components/schemas/microsoft.graph.regionalAndLanguageSettings"
420418
},
421419
{
422-
"enum": [null],
423-
"nullable": true
420+
"enum": [null]
424421
}
425422
],
426423
"description": "The user's preferences for languages, regional locale and date/time formatting.",
@@ -432,8 +429,7 @@ public async Task CreateStructuredTypePropertiesSchemaWithCustomAttributeReturns
432429
"$ref": "#/components/schemas/microsoft.graph.shiftPreferences"
433430
},
434431
{
435-
"enum": [null],
436-
"nullable": true
432+
"enum": [null]
437433
}
438434
],
439435
"description": "The shift preferences for the user.",
@@ -932,8 +928,7 @@ public async Task CreatePropertySchemaForNullableEnumPropertyReturnSchema(OpenAp
932928
{
933929
"enum": [
934930
null
935-
],
936-
"nullable": true
931+
]
937932
}
938933
],
939934
"default": "yellow"

0 commit comments

Comments
 (0)