Skip to content

Commit 183bd0d

Browse files
Update aspnetcore/fundamentals/openapi/include-metadata.md
1 parent 2d775f3 commit 183bd0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aspnetcore/fundamentals/openapi/include-metadata.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,13 +549,13 @@ 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+
| 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+)?$"`
558+
| decimal | [number,string] | double | pattern `<digits with decimal >` | <!-- pattern: `"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"` -->
559559

560560
If 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.
561561

0 commit comments

Comments
 (0)