Using <code>openapi-cli</code>: custom preprocessing

1 · Yuliya Bagriy · Aug. 17, 2021, 3:47 a.m.
The key feature of openapi-cli is its extensibility. There are three ways to extend it: preprocessors, rules, and decorators. In comparison, Spectral supports only custom rules. In this tutorial, we’ll start with preprocessors. They are used to transform OpenAPI description document before validation and linting. Mind you, documentation says they should be avoided, because custom preprocessors tend to be error prone....