File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
aspnetcore/fundamentals/openapi Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -546,17 +546,16 @@ When the <xref:System.Text.Json.JsonSerializerOptions.NumberHandling> property i
546546
547547
548548
549- <!--
549+
550550| C# Type | OpenAPI ` type ` | OpenAPI ` format ` | Other assertions |
551551| -------------- | ---------------- | ---------------- | ------------------------------ |
552- | int | [integer,string] | int32 | pattern `<digits>` | pattern: "^-?(?:0|[1-9]\\d*)$"
552+ | int | [ integer,string] | int32 | pattern ` <digits> ` | pattern: ` "^-?(?:0|[1-9]\\d*)$" `
553553| long | [ integer,string] | int64 | pattern ` <digits> ` |
554554| short | [ integer,string] | int16 | pattern ` <digits> ` |
555555| byte | [ integer,string] | uint8 | pattern ` <digits> ` |
556- | float | [number,string] | float | pattern `<digits with decimal >` | pattern: "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"
556+ | float | [ number,string] | float | pattern ` <digits with decimal > ` | pattern: ` "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$" `
557557| double | [ number,string] | double | pattern ` <digits with decimal > ` |
558- | decimal | [number,string] | double | pattern `<digits with decimal >` | pattern: "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
559- -->
558+ | decimal | [ number,string] | double | pattern ` <digits with decimal > ` | pattern: ` "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$" `
560559
561560If the app is configured to produce OpenAPI 3.0 or OpenAPI v2 documents, where the ` type ` field cannot have an array value, the ` type ` field is dropped.
562561
You can’t perform that action at this time.
0 commit comments