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.