openapi-typescript icon indicating copy to clipboard operation
openapi-typescript copied to clipboard

Document for conditional authentication failed.

Open tcztzy opened this issue 1 year ago • 1 comments

Description

Document for conditional authentication failed. The code in documentation failed with error

TypeError: Cannot read properties of undefined (reading 'startsWith')

Reproduction

Just follow the document

Expected result

url should be passed to onRequest

https://github.com/openapi-ts/openapi-typescript/blob/69f0628b5ad22c3535c43653b70bd8fbc5f3887d/packages/openapi-fetch/src/index.js#L110-L116

https://github.com/openapi-ts/openapi-typescript/blob/69f0628b5ad22c3535c43653b70bd8fbc5f3887d/packages/openapi-fetch/src/index.d.ts#L127-L145

Checklist

tcztzy avatar Jul 11 '24 03:07 tcztzy