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

How to validate a single block of the API by type?

Open naivefun opened this issue 5 years ago • 1 comments

For instance I wanna just validate a definition, or a single endpoint object. What's the correct API for the purpose?

naivefun avatar Sep 23 '18 03:09 naivefun

There's not currently a way to do that. The validate() method validates the entire Swagger definition, not just a part of it.

JamesMessinger avatar Sep 23 '18 10:09 JamesMessinger