Stone.js API
    Preparing search index...

    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.

    stone openapi                       # print it
    stone openapi export -o api.json # write it, to commit or to feed a type generator
    Index
    • Run the requested action.

      Parameters

      • event: IncomingEvent

        The console event carrying the action and options.

      Returns void