sylvainlaurent / swagger-validator-maven-plugin

A maven plugin that validates swagger files in yaml and json formats
Apache License 2.0
11 stars 6 forks source link

invalid MIME type 'multipart/form-data' in 'consumes #23

Open ellavish89 opened 5 years ago

ellavish89 commented 5 years ago

invalid MIME type 'multipart/form-data' in 'consumes getting that as part of verify although this is a valid MIME

ellavish89 commented 5 years ago

and another small question : Can I set "SemanticErrors" not to fail on errors, but DefenitionSemanticErrors to fail?

Thanks a lot

ellavish89 commented 5 years ago

Thanks, will there be a new version release for that soon?

giuliopulina commented 5 years ago

Thanks, will there be a new version release for that soon?

@ellavish89 hopefully yes, though it depends when the pull request will be merged. In the meantime, can you give my branch a try and verify that the issue described here is fixed?

giuliopulina commented 5 years ago

and another small question : Can I set "SemanticErrors" not to fail on errors, but DefenitionSemanticErrors to fail?

Thanks a lot

@ellavish89 about your question, currently this kind of granularity in behavior is not supported. Personally I think that the spec, as a whole, is either valid or not valid: in the latter case, the only available options should be to fail or just raise warning messages.

ellavish89 commented 5 years ago

Thanks for the answer. I will check now and update