vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. Built in go, it tears through API specs faster than you can think. vacuum is compatible with Spectral rulesets and generates compatible reports.
Consider the two attached OpenAPI docs. One is a yaml document with anchors and the other is the same document that I have just inlined the anchors by doing a roundtrip through https://github.com/go-yaml/yaml
The below reproducible code shows that the document with anchors returns incorrect yaml nodes when present (specifically I am getting a node with no content).
Consider the two attached OpenAPI docs. One is a yaml document with anchors and the other is the same document that I have just inlined the anchors by doing a roundtrip through https://github.com/go-yaml/yaml
The below reproducible code shows that the document with anchors returns incorrect yaml nodes when present (specifically I am getting a node with no content).
The code returns
errors found
in the version with anchors and just returnsdone
in the inlined versionopenapi.zip