When using Swagger UI with a .Net Core API, how can I make a required enum field in a form succeed without requiring the user to make a change to the value?
Riya Answered question December 19, 2023
To make a required enum field in Swagger UI for a .NET Core API succeed without user input:
1. Use OpenAPI Specification (OAS) in your API documentation.
2. Set a default value for the required enum field in the OAS.
3. This default value allows the Swagger UI to recognize the field as filled, satisfying the requirement without user interaction.
Riya Answered question December 19, 2023
