4 ms·
You can write an OpenAPI spec in JSON. You can use Jsonnet to generate your spec from whatever input you need.
by rad_gruchalski 3y ago
You can write an OpenAPI spec in JSON. You can use Jsonnet to generate your spec from whatever input you need.
- madeofpalk 3y agoJSON is a different kind of yuck to have to author by hand, especially in the volume an api spec tends to be.
- rad_gruchalski 3y agoYes, so use Jsonnet or generate it from some intermediate representation using some alternative method. What’s the problem?
- refulgentis 3y agoI don't like writing structured formats by hand either - at some point, you either need to, as they say in France, split or get off your seat Either don't write it by hand, i.e. use a generator for the structured format, as the comments advocate for and article is about. Or, just say you'll never have a spec.