Closed giuliopulina closed 6 years ago
the maven plugin just uses a json schema and the swagger-parser lib. So, I guess the swagger-parser issue you found is the problem... Once it is fixed I can make a new release that uses the updated swagger-parser version...
I don't know if the swagger-parser will be ever modified to include these validations :(
I noticed that the swagger-editor uses an additional set of semantic validation rules, implemented in javascript. Also, I found a list of semantic validation rules from apigee.
Instead of relying on swagger-parser, do you think it will be a good idea to introduce 'semantic validation' also in this project, to be executed after schema validation? I'm interested in trying to implement and I can create a PR when I've finished
I'd be happy to review and merge your PR.
thanks for the PR #5 , it's now merged to master.
thanks @giuliopulina I released 1.1.0 with your contribution. It should be available in Maven Central in a few hours...
Hello,
I noticed that the validator doesn't work well in case of not existing properties defined in 'required' sections. Let me explain better with an example:
This definition passes the validation, and I think it's not correct (swagger editor, in such cases, says: "Missing required property definition: not_existing_property".
Do you know where I can look to fix it? Could it be linked to this issue https://github.com/swagger-api/swagger-parser/issues/452?
Thanks Giulio