Forum Discussion
RonRatovsky
Moderator
Hello,
There are several issues here.
First, your API definition is invalid, and SwaggerHub should show you were. Generally speaking, `null` is not a valid value, so anything with that value would need to be either erased or given a valid value.
The second part is that you're trying to describe an OAuth2 security process using direct API paths, which is not the right approach with the OpenAPI Specification. You can find out more about how to define OAuth2 in your definitions through https://swagger.io/docs/specification/2-0/authentication.
pranabpal
6 years agoNew Contributor
Can you help me if you can modify the swagger so that it become workable. I am very novice in writing swagger script if you can write for me - i will be grateful