将 OpenAPI 文档中的安全方案对象转换为另一种格式(例如:JSON、XML 等)。 AuthScheme.
AuthScheme
安全方案对象(Security Scheme Object)。
经过验证的身份验证方案。
const scheme = recordToAuthScheme({ type: 'apiKey', in: 'header', name: 'X-API-Key',}); Copy
const scheme = recordToAuthScheme({ type: 'apiKey', in: 'header', name: 'X-API-Key',});
当……时出现错误 type 该对象的部分信息缺失或无法被识别;此外,该对象的其余部分也不符合该类型所要求的形状。
type
将 OpenAPI 文档中的安全方案对象转换为另一种格式(例如:JSON、XML 等)。
AuthScheme.