@samchon/openapi
Version:
OpenAPI definitions and converters for 'typia' and 'nestia'.
18 lines (16 loc) • 435 B
text/typescript
import { OpenApi } from "../../OpenApi";
import { IValidation } from "../../structures/IValidation";
export interface IOpenApiValidatorContext<Schema extends OpenApi.IJsonSchema> {
components: OpenApi.IComponents;
schema: Schema;
value: unknown;
path: string;
report: (
error: IValidation.IError & {
exceptionable: boolean;
},
) => false;
exceptionable: boolean;
expected: string;
required: boolean;
}