fluid-oas
    Preparing search index...

    Interface OpenApiSecurityScheme

    interface OpenApiSecurityScheme {
        addBearerFormat(bearerFormat: string): this;
        addDescription(description: string): this;
        addExtensions(mappings: { [key: `x-${string}`]: OpenApiSchema }): this;
        addFlows(flows: OpenApiOAuthFlows): this;
        addIn(inSecurity: "query" | "header" | "cookie"): this;
        addName(name: string): this;
        addOpenIdConnectUrl(val: string): this;
        addScheme(scheme: string): this;
        addType(
            type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect",
        ): this;
        override(overrideVal: unknown): this;
        toJSON(): unknown;
    }

    Hierarchy

    • BaseInterface
      • OpenApiSecurityScheme
    Index

    Methods

    • Extend the specification with an extension object schema.

      Parameters

      • mappings: { [key: `x-${string}`]: OpenApiSchema }

        key value mappings with names MUST beginning with "x-"

      Returns this

    • Parameters

      • type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect"

      Returns this

    • Overrides the toJSON method for a custom serialization.

      WARNING: overrideVal must be serializable and future changes are subject to breaking.

      Parameters

      • overrideVal: unknown

        Overrides the serialization of this object into this value.

      Returns this

    • Serializes the object into its equivalent OpenApi JSON value.

      Returns unknown