Print or export the OpenAPI contract from the console.
The console adapter boots the whole application before running a command, which is what makes this
the most complete way to produce the document: the container is up, so every schema class is built
with the services it asked for, and the contract is exactly what the running application would
serve. That is a strictly better answer than reading schemas in isolation, and it is why the
document belongs in a command as much as on a route.
stoneopenapi# print it stoneopenapiexport-oapi.json# write it, to commit or to feed a type generator
Print or export the OpenAPI contract from the console.
The console adapter boots the whole application before running a command, which is what makes this the most complete way to produce the document: the container is up, so every schema class is built with the services it asked for, and the contract is exactly what the running application would serve. That is a strictly better answer than reading schemas in isolation, and it is why the document belongs in a command as much as on a route.