Skip to content

Commit 2d775f3

Browse files
Apply suggestions from code review
1 parent a2e0703 commit 2d775f3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

aspnetcore/fundamentals/openapi/include-metadata.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

561560
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.
562561

0 commit comments

Comments
 (0)