UNPKG

express-openapi-validator

Version:

Automatically validate API requests and responses with OpenAPI 3 and Express.

20 lines (19 loc) 518 B
import { OpenAPIV3 } from './types'; interface ServerUrlVariables { [key: string]: ServerUrlValues; } interface ServerUrlValues { enum: string[]; default?: string; } export declare class BasePath { readonly variables: ServerUrlVariables; readonly expressPath: string; private allPaths; constructor(server: OpenAPIV3.ServerObject); static fromServers(servers: OpenAPIV3.ServerObject[]): BasePath[]; hasVariables(): boolean; all(): string[]; private findUrlPath; } export {};