Lines 653-693javascript
653 refreshUrl: { type: 'string' },
654 authorizationUrl: { type: 'string' },
655 scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
656 tokenUrl: { type: 'string' },
657 'x-usePkce': (value) => {
658 if (typeof value === 'boolean') {
659 return { type: 'boolean' };
666 required: ['authorizationUrl', 'tokenUrl', 'scopes'],
667 extensionsPrefix: 'x-',
668 description: 'Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.',
672 implicit: 'ImplicitFlow',
673 password: 'PasswordFlow',
674 clientCredentials: 'ClientCredentials',
675 authorizationCode: 'AuthorizationCode',
677 extensionsPrefix: 'x-',
678 description: 'Configuration details for a supported OAuth Flow.',
680const SecurityScheme = {
683 enum: ['apiKey', 'http', 'oauth2', 'openIdConnect'],
684 description: 'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".',
688 description: 'A short description for security scheme.',
692 description: 'REQUIRED. The name of the header, query or cookie parameter to be used.',