You can write an OpenAPI spec in JSON. You can use Jsonnet to generate your spec from whatever input you need.
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.