-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null output for formData parameter #28
Comments
@MinniArora could you please provide a full Swagger that could be used to repro the issue? That would speed up the investigation for sure. Thanks! |
@galovics Sure. PFA. |
Hi @MinniArora. I've checked the attached definition, thanks for that.
Your API definition when using formData (like for access_token), you are specifying a schema. If you flatten it and change it to a primitive string type, its going to work. For OpenAPI V3, the formData attribute concept has been replaced with relying on the requestBody attribute of a path. In that case, the way to define it is to always use a schema:
I think your definition is between the 2 versions. Although I'm going to introduce some level of validation to detect the wrong usage of the schema attribute. |
@MinniArora got it, then thats the reason. |
Hi
Defining parameter as below gives null on running swagger brake:
{"in":"formData","name":"fileName","description":"fileName","required":true,"schema":{"type":"string"}}
Output:
Successfully loaded APIs
Starting the check for breaking API changes
null
For help please use --help
Is there anything missing?
The text was updated successfully, but these errors were encountered: