schema-components - v3.7.0
    Preparing search index...

    Function rewriteSwaggerRefPrefix

    • Rewrite a Swagger 2.0 ref prefix onto the equivalent OpenAPI 3.x location. Returns the ref unchanged when no prefix matches. Pure string operation — does not validate that the target exists.

      Parameters

      • ref: string

      Returns string