iya-sts
    Preparing search index...
    Index
    • Writes an operation's example onto its parameters and request body.

      Parameters

      • operation: any

        the OpenAPI operation

      • example: any

        its example, or nothing

      Returns any

      the operation

    • Parameters

      • operation: any
      • models: any
      • error: any

      Returns any

    • Parameters

      • properties: any
      • Optionaloptions: Options

      Returns any

    • Moves every model repeated across a document's responses into components, leaving a $ref at each use. A model is written once in its family's file and reached by many operations, so inlining all of them made GET /admin-api/openapi.json several times its size, and the console reads that document for its forms. What a model says does not change.

      Parameters

      • doc: any

        the OpenAPI document

      Returns any

      the document

    • Parameters

      • values: string[]
      • Optionaldescription: string

      Returns any