evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A utility that validates and analyzes security configurations in OpenAPI 3.0 documents. The tool should parse OpenAPI documents, extract security requirements, and generate reports about the authentication and authorization mechanisms used.
import { OpenAPIV3 } from 'openapi-types';
/**
* Validates that all security schemes in an OpenAPI document are properly defined
*/
export function validateSecuritySchemes(document: OpenAPIV3.Document): boolean;
/**
* Extracts global security requirements from a document
*/
export function extractGlobalSecurity(document: OpenAPIV3.Document): string[];
/**
* Extracts security requirements for a specific operation
*/
export function extractOperationSecurity(
operation: OpenAPIV3.OperationObject
): string[];
/**
* Returns a map of security scheme names to their types
*/
export function identifySchemeTypes(
document: OpenAPIV3.Document
): Record<string, string>;
/**
* Generates a summary of security configuration
*/
export interface SecuritySummary {
schemeTypeCounts: Record<string, number>;
protectedOperations: string[];
}
export function generateSecuritySummary(document: OpenAPIV3.Document): SecuritySummary;Provides TypeScript type definitions for OpenAPI 3.0 specifications, including comprehensive security scheme types.