How to disable swagger input required field validation for nullable input string datatypes REST API,How to disable required field validation in SWAGGER

swagger-input.png

Hi Team,

I want solution to disable required field validation for string datatype in swagger. I made the method as below. Eventhough i added default value as null ,Swagger checking for required field validation Get(string Number = null, string uid = null, string Id = null, string longNumber = null)

0 3 3,686
3 REPLIES 3

Hi Geethan,

Is there a reason why these fields cannot be marked as with `required=false` in the Open API specification? Doing so will disable the validation of the field.

thanks Ernest Landrito.

Can you please tell how to configure Open Api specification? Where can i find this file in my Rest Api project?

Hi @Geethan Kasiananthan If you are asking on apigee edge, you can navigate to develop -> specs.