UNPKG

express-openapi-validator

Version:

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

8 lines (7 loc) 287 B
import { ContentType } from '../util'; import { OpenAPIV3, BodySchema } from '../../framework/types'; export declare class BodySchemaParser { constructor(); parse(path: string, pathSchema: OpenAPIV3.OperationObject, contentType: ContentType): BodySchema; private toSchema; }