Stone.js API
    Preparing search index...

    Interface OpenapiCliPluginOptions

    Options for the OpenAPI CLI plugin.

    interface OpenapiCliPluginOptions {
        source?: string;
    }
    Index
    source?: string

    A path or URL to an OpenAPI 3.x or Swagger 2.x document.

    • A URL starting with https:// is fetched at build time.
    • An absolute or relative path is read from disk.

    When omitted the plugin looks for a file at .stone/tmp/openapi.json. That is the convention for a build script that already produces the contract before the type-generation step.