Skip to content

Commit c7e6e73

Browse files
committed
chore: fixes max/min types
Signed-off-by: Vincent Biret <[email protected]>
1 parent dade489 commit c7e6e73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/upgrade-guide-2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ The OpenAPI 3.1 specification changes significantly how it leverages JSON Schema
159159

160160
```csharp
161161

162-
public decimal? ExclusiveMaximum { get; set; } //type changed to reflect the new version of JSON schema
163-
public decimal? ExclusiveMinimum { get; set; } // type changed to reflect the new version of JSON schema
162+
public string? ExclusiveMaximum { get; set; } // type changed to reflect the new version of JSON schema
163+
public string? ExclusiveMinimum { get; set; } // type changed to reflect the new version of JSON schema
164164
public JsonSchemaType? Type { get; set; } // Was string, now flagged enum
165-
public decimal? Maximum { get; set; } // Double???
166-
public decimal? Minimum { get; set; } // Double???
165+
public string? Maximum { get; set; } // Double???
166+
public string? Minimum { get; set; } // Double???
167167
168168
public JsonNode Default { get; set; } // Type matching no longer enforced. Was IOpenApiAny
169169
public bool ReadOnly { get; set; } // No longer has defined semantics in OpenAPI 3.1

0 commit comments

Comments
 (0)