Skip to content

Commit

Permalink
Final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Sep 1, 2023
1 parent e318120 commit c7ec372
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public static OpenApiSchema CreateEnumTypeSchema(this ODataContext context, IEdm
var enumFlagsExtension = new OpenApiEnumFlagsExtension
{
IsFlags = true,
Style = "form"
Style = "simple"
};
schema.Extensions.Add(enumFlagsExtension.Name, enumFlagsExtension);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// ------------------------------------------------------------

using System;
using System.IO;
using Microsoft.OpenApi.Writers;
using Xunit;
Expand Down Expand Up @@ -72,7 +71,7 @@ public void WritesAllValues()
// Arrange
OpenApiEnumFlagsExtension extension = new() {
IsFlags = true,
Style = "form"
Style = "simple"
};
using TextWriter sWriter = new StringWriter();
OpenApiJsonWriter writer = new(sWriter);
Expand All @@ -85,6 +84,6 @@ public void WritesAllValues()
Assert.True(extension.IsFlags);
Assert.NotNull(extension.Style);
Assert.Contains("\"isFlags\": true", result);
Assert.Contains("\"style\": \"form\"", result);
Assert.Contains("\"style\": \"simple\"", result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27925,7 +27925,7 @@
"type": "string",
"x-ms-enum-flags": {
"isFlags": true,
"style": "form"
"style": "simple"
}
},
"Edm.Geography": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19627,7 +19627,7 @@ definitions:
type: string
x-ms-enum-flags:
isFlags: true
style: form
style: simple
Edm.Geography:
$ref: '#/definitions/Edm.Geometry'
Edm.GeographyPoint:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31297,7 +31297,7 @@
"type": "string",
"x-ms-enum-flags": {
"isFlags": true,
"style": "form"
"style": "simple"
}
},
"Edm.Geography": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21807,7 +21807,7 @@ components:
type: string
x-ms-enum-flags:
isFlags: true
style: form
style: simple
Edm.Geography:
$ref: '#/components/schemas/Edm.Geometry'
Edm.GeographyPoint:
Expand Down

0 comments on commit c7ec372

Please sign in to comment.