swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

SwaggerParser.validate API returns only first error encountered

Open Darshan-shivashankar opened this issue 8 years ago • 4 comments

Is there a way to get all the error's captured while we validate the swagger? Currently it only catches the first schema validation error.

There might be a case where multiple #ref might be broken. It would be nice to have a way in which we could catch all possible schema validation errors in one single validate call.

Darshan-shivashankar avatar Feb 24 '17 08:02 Darshan-shivashankar

Yes, this is definitely do-able.

JamesMessinger avatar Feb 27 '17 17:02 JamesMessinger

@BigstickCarpet Any ETA on when you think we might have this feature added.

Darshan-shivashankar avatar Mar 01 '17 08:03 Darshan-shivashankar

I can't give an ETA right now, because it depends on how much free time I have. I originally wrote Swagger Parser for an employer, so I was paid to work on it during normal business hours. But that's no longer the case, so now can only work on it in my free time.

That said, with today's release of Swagger 3.0, I plan to make Swagger Parser a priority again. I intend to refactor a bunch of the existing Swagger 2.0 functionality and also add support for Swagger 3.0

JamesMessinger avatar Mar 01 '17 15:03 JamesMessinger

Checking in on this. It's been awhile; any progress?

greggilbert avatar Dec 05 '17 21:12 greggilbert