Skip to content

Commit 7b78e58

Browse files
committed
config JsonOptions globally /3
1 parent 66c1d0c commit 7b78e58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

aspnetcore/fundamentals/openapi/include-metadata.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,7 @@ public enum PizzaToppings { Pepperoni = 1, Sausage = 2, Mushrooms = 4, Anchovies
628628

629629
An enum type without a [`[JsonConverter]`](xref:System.Text.Json.Serialization.JsonConverterAttribute) will be defined as `type: integer` in the generated schema.
630630

631-
**Note:**
632-
633-
* The [`[AllowedValues]`](xref:System.ComponentModel.DataAnnotations.AllowedValuesAttribute) attribute does not set the `enum` values of a property.
634-
* See [Set JSON serialization options globally](#set-json-serialization-options-globally), which sets `JsonStringEnumConverter` globally.
631+
**Note:** The [`[AllowedValues]`](xref:System.ComponentModel.DataAnnotations.AllowedValuesAttribute) attribute does not set the `enum` values of a property.
635632

636633
#### nullable
637634

0 commit comments

Comments
 (0)