UNPKG

@autobe/agent

Version:

AI backend server code generator

25 lines (24 loc) 802 B
import { AutoBeOpenApi } from "@autobe/interface"; import { IValidation } from "typia"; export declare namespace AutoBeJsonSchemaValidator { const isObjectType: (props: { operations: AutoBeOpenApi.IOperation[]; typeName: string; }) => boolean; const isPage: (key: string) => boolean; const isPreset: (typeName: string) => boolean; interface IProps { errors: IValidation.IError[]; operations: AutoBeOpenApi.IOperation[]; typeName: string; schema: AutoBeOpenApi.IJsonSchema; path: string; } const validateSchema: (props: IProps) => void; const validateKey: (props: { errors: IValidation.IError[]; key: string; path: string; transform?: (typeName: string) => string; }) => void; }