Skip to content
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

Validator results are different from Swagger Editor errors #117

Open
axnsan12 opened this issue Dec 7, 2017 · 4 comments
Open

Validator results are different from Swagger Editor errors #117

axnsan12 opened this issue Dec 7, 2017 · 4 comments

Comments

@axnsan12
Copy link

axnsan12 commented Dec 7, 2017

The Swagger Editor seems to catch a lot more errors than the online validator. Is this by design or will it ever be fixed?

Is there any way to access the editor's validation programatically?

@webron
Copy link
Contributor

webron commented Dec 7, 2017

The two validations are different. At the moment we don't offer a way to access the editor's validation.

If you provide us with examples of missed things, we can work on fixing those here.

@axnsan12
Copy link
Author

axnsan12 commented Dec 7, 2017

For my case, the editor complains if I add a parameter in: formData without adding multipart/form-data to consumes, while the validator does not.

@webron
Copy link
Contributor

webron commented Dec 7, 2017

Thanks, we'll look into that.
If you have any other issues, please file new tickets or add comments here.

@smile18
Copy link

smile18 commented Jan 25, 2018

I see the validator has some bug, I was using this validator in my application to validate the swagger spec but found that it is not working correctly any more so I cloned the validator-badge to my local and ran the application and when I try to validate an invalid swagger spec in which I purposefully deleted one of the reference model say Addresses but it still says valid where as swagger editor shows error "Reference could not be resolved: #/definitions/Addresses"
localinvalidswaggersuccess
swaggereditorinvaliderror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants