You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An enum type without a [`[JsonConverter]`](xref:System.Text.Json.Serialization.JsonConverterAttribute) will be defined as `type: integer` in the generated schema.
630
648
631
649
**Note:** The [`[AllowedValues]`](xref:System.ComponentModel.DataAnnotations.AllowedValuesAttribute) attribute does not set the `enum` values of a property.
632
650
633
-
[Set JSON options globally](#set-json-serialization-options-globally) shows how to set the the `JsonStringEnumConverter` globally.
651
+
[Set JSON options globally](#set-json-serialization-options-globally) shows how to set the `JsonStringEnumConverter` globally.
634
652
635
653
#### nullable
636
654
@@ -670,19 +688,19 @@ A schema transformer can be used to override any default metadata or add additio
670
688
671
689
## Set JSON serialization options globally
672
690
673
-
The following code configures some JSON options globally, for Minimal APIs and Controler based APIs:
691
+
The following code configures some JSON options globally, for Minimal APIs and Controller based APIs:
|**Purpose**| Handles serialization and deserializtion of JSON requests and responses in APIs. | Defines global JSON handling for Minimal APIs and OpenAPI schemas. |
703
+
|**Purpose**| Handles serialization and deserialization of JSON requests and responses in APIs. | Defines global JSON handling for Minimal APIs and OpenAPI schemas. |
686
704
|**Influence on OpenAPI**| None | Directly influences OpenAPI schema generation.|
0 commit comments