Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Jan 31, 2025
1 parent a5023d6 commit 121bb48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Microsoft.OpenApi/Models/OpenApiSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,7 @@ private void SerializeTypeProperty(JsonSchemaType? type, IOpenApiWriter writer,
var isNullable = Nullable ||
Extensions is not null &&
Extensions.TryGetValue(OpenApiConstants.NullableExtension, out var nullExtRawValue) &&
nullExtRawValue is OpenApiAny openApiAny &&
openApiAny.Node is JsonNode jsonNode &&
nullExtRawValue is OpenApiAny { Node: JsonNode jsonNode} &&
jsonNode.GetValueKind() is JsonValueKind.True;
if (type is null)
{
Expand Down

0 comments on commit 121bb48

Please sign in to comment.