Skip to content

securitySchemes are ignored #305

@Karnak19

Description

@Karnak19

Hello, I have an openapi spec which use the securitySchemes, which seems to not be parsed:

    /site-config:
        get:
            summary: Retrieve the configuration of a site
            operationId: getSiteConfig
            responses:
                '200':
                    description: "successful operation"
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SiteConfig'
                '500':
                    description: Site not found
            security:
                -   minisite_domain_header: [ ]
    securitySchemes:
        minisite_domain_header:
            type: apiKey
            in: header
            name: X-MINISITE-DOMAIN

Which in the end generate:

export const getSiteConfig = (signal?: AbortSignal) =>
  awakenFetch<Schemas.SiteConfig, GetSiteConfigError, undefined, {}, {}, {}>({
    url: "/site-config",
    method: "get",
    signal,
  });

Shouldn't this header be added as variable here ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions