Open segevfiner opened 4 years ago
Have you tried the 'security audit' feature? It performs a lot of various checks, and it is not solely focused on the security of the api.
It looks like it does much more then we require, enforcing a bunch of stuff that we don't really need. It is also an online service and needs to be triggered manually each time. The validation in Swagger editor is on the fly and local.
This would be great to have!
Apologies for the necro, but for future reference: you can achieve this using the https://github.com/stoplightio/vscode-spectral extension and adding a default ruleset:
# .spectral.yaml
formats:
- oas3 # or oas3.1 if you wish to be modern
extends:
- "spectral:oas"
Using Swagger Editor (The web based one from swagger.io). You get a bunch of additional lints/validation that I don't see with this extension installed. It would be nice to have those. They include for example checking that you have correctly declared all path parameters and other such checks that are not purely checking agains't the schema.
I think they are part of the swagger generator (Or openapi-generator fork) as a validate command.