TIL that if Iโm working on a Web API server thatโs generating an OpenAPI spec locally and I want to validate it, this works:
curl --silent http://localhost:8000/api/openapi.json | curl --json @- --silent https://validator.swagger.io/validator/debug | jq
NB: this will share your openapi.json with whomever runs validator.swagger.io! Make sure thatโs OK before you do this!
โฆactually Iโd like to have a fully-local option, so I just came up with this:
```
brew install daveshanley/vacuum/vacuum
vacuum lint --no-banner --details --errors =(curl --silent http://localhost:8000/api/openapi.json)
```
โฆwhich seems stricter than validator.swagger.io fwiw.