Converts a security scheme object out of an OpenAPI document into an AuthScheme.
AuthScheme
The security scheme object.
The validated auth scheme.
const scheme = dictToAuthScheme({ type: 'apiKey', in: 'header', name: 'X-API-Key',}); Copy
const scheme = dictToAuthScheme({ type: 'apiKey', in: 'header', name: 'X-API-Key',});
Error When type is missing or unrecognised, or the rest of the object does not match the shape that type requires.
type
Converts a security scheme object out of an OpenAPI document into an
AuthScheme.