@scalar/openapi-types
Version:
Modern OpenAPI types
22 lines (21 loc) • 904 B
JavaScript
import { z } from "zod";
const SecurityRequirementObjectSchema = z.record(
/**
* Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components
* Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names
* required for the execution, and the list MAY be empty if authorization does not require a specified scope.
*
* For other security scheme types, the array MAY contain a list of role names which are required for the execution,
* but are not otherwise defined or exchanged in-band.
**/
z.string(),
/**
* A list of scope names required for the execution, and the list MAY be empty if authorization does not require a
* specified scope.
*/
z.array(z.string())
);
export {
SecurityRequirementObjectSchema
};
//# sourceMappingURL=security-requirement-object.js.map