validator-badge icon indicating copy to clipboard operation
validator-badge copied to clipboard

Validator results are different from Swagger Editor errors

Open axnsan12 opened this issue 7 years ago • 4 comments

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?

axnsan12 avatar Dec 07 '17 10:12 axnsan12

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.

webron avatar Dec 07 '17 17:12 webron

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.

axnsan12 avatar Dec 07 '17 18:12 axnsan12

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

webron avatar Dec 07 '17 19:12 webron

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

smile18 avatar Jan 25 '18 01:01 smile18