sylvainlaurent/swagger-validator-maven-plugin

Line-numbers should be mentioned in the error.

Opened this issue · 2 comments

Hello,

I was working with the validator plugin and as a beginner, it's taking me quite a lot of time just to find out in which line are the following errors:

[ERROR] SemanticError at Enrolment.id: Description missing for property
[ERROR] SemanticError at paths./enrolments/{id}.delete.id: Description missing for parameter
[ERROR] SemanticError at paths./enrolments/{id}.delete: Summary missing
[ERROR] SemanticError at paths./enrolments/{id}.get: Summary missing

I have many "Enrolment", "Enrolments" in my swagger file. I will eventually find out the errors (I hope!) but it would save quite a lot of time, in case the line numbers were mentioned.

Thank you!

Hi @prasannjeet, that's indeed something interesting, but I think that swagger-parser library (used to convert input file into object model) doesn't provide this feature: swagger-api/swagger-parser#377

Hello @giuliopulina, thanks for the information.