File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
aspnetcore/fundamentals/openapi Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -549,13 +549,15 @@ When the <xref:System.Text.Json.JsonSerializerOptions.NumberHandling> property i
549549
550550| C# Type | OpenAPI ` type ` | OpenAPI ` format ` | Other assertions |
551551| -------------- | ---------------- | ---------------- | ------------------------------ |
552- | int | [ integer,string] | int32 | pattern ` <digits> ` | <!-- pattern: `"^-?(?:0|[1-9]\\d*)$"` -->
552+ <!--
553+ | int | [integer,string] | int32 | pattern `<digits>` | pattern: `"^-?(?:0|[1-9]\\d*)$"`
553554| long | [integer,string] | int64 | pattern `<digits>` |
554555| short | [integer,string] | int16 | pattern `<digits>` |
555556| byte | [integer,string] | uint8 | pattern `<digits>` |
556- | float | [ number,string] | float | pattern ` <digits with decimal > ` | <!-- pattern: `"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"` -->
557+ | float | [number,string] | float | pattern `<digits with decimal >` | pattern: `"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$"`
557558| double | [number,string] | double | pattern `<digits with decimal >` |
558- | decimal | [ number,string] | double | pattern ` <digits with decimal > ` | <!-- pattern: `"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"` -->
559+ | decimal | [number,string] | double | pattern `<digits with decimal >` | pattern: `"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"`
560+ -->
559561
560562If 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.
561563
You can’t perform that action at this time.
0 commit comments