Skip to content

Commit

Permalink
task: updated example open api schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dtanglr committed Apr 5, 2024
1 parent 726d9c0 commit d5fdd3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void Apply(OpenApiSchema schema, SchemaFilterContext context)
_ => "integer"
};
schema.Properties = null;
schema.Example = new OpenApiString(numericInfo.Example);
schema.Example = !string.IsNullOrWhiteSpace(numericInfo.Example) ? new OpenApiString(numericInfo.Example) : null;
schema.Minimum = numericInfo switch
{
NumericInfo<byte> byteInfo => byteInfo.Minimum,
Expand Down

0 comments on commit d5fdd3b

Please sign in to comment.