Skip to content

Commit dca3151

Browse files
committed
Update Uri format
1 parent 0b141fa commit dca3151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static class OpenApiTypeMapper
4343
[typeof(Guid?)] = () => new OpenApiSchema { Type = "string", Format = "uuid", Nullable = true },
4444
[typeof(char?)] = () => new OpenApiSchema { Type = "string", Nullable = true },
4545

46-
[typeof(Uri)] = () => new OpenApiSchema { Type = "string" }, // Uri is treated as simple string
46+
[typeof(Uri)] = () => new OpenApiSchema { Type = "string", Format = "uri"}, // Uri is treated as simple string
4747
[typeof(string)] = () => new OpenApiSchema { Type = "string" },
4848
[typeof(object)] = () => new OpenApiSchema { Type = "object" }
4949
};

0 commit comments

Comments
 (0)