export type SchemaRef = { $ref: string; }; export type Schema = { type: string; enum?: string[]; items?: SchemaRef; }; export interface Parameter { name: string; in: string; required: boolean; schema: Schema; } export interface Response { description: string; content?: { [contentType: string]: { schema: SchemaRef | Schema; }; }; links?: { [linkName: string]: SchemaRef; }; } export interface Path { operationId: string; parameters: Parameter[]; responses: { [statusCode: string]: Response; }; } export interface PathItem { get?: Path; post?: Path; put?: Path; delete?: Path; patch?: Path; } export interface CollectionInfo { title: string; version: string; description?: string; } export interface Paths { [key: string]: PathItem; } export interface OpenApi30 { openapi: string; info: CollectionInfo; paths: Paths; }