UNPKG

@povio/openapi-codegen-cli

Version:

**NOTE:** This CLI tool is primarily designed for use within our organization. The generated code output aligns with our internal template. If you are using this tool without our internal template, make sure to use it in **standalone** mode.

18 lines (17 loc) 1.52 kB
import { HttpStatusCode } from "src/generators/const/validation.const"; import { Endpoint, EndpointParameter } from "src/generators/types/endpoint"; import { OperationObject } from "src/generators/types/openapi"; import { ValidationError, ValidationErrorType } from "src/generators/types/validation"; export declare function getInvalidSchemaError(message: string): ValidationError; export declare function getInvalidOperationIdError(operationId: string): ValidationError; export declare function getMissingPathParameterError(params: EndpointParameter[], path: string): ValidationError; export declare function getNotAllowedInlineEnumError(enumProperty: string): ValidationError; export declare function getNotAllowedCircularSchemaError(message: string): ValidationError; export declare function getMissingAclConditionPropertyError(propertyName: string, operation: OperationObject, endpoint: Endpoint): ValidationError; export declare function getMissingStatusCodeError(statusCode: HttpStatusCode, operation: OperationObject, endpoint: Endpoint): ValidationError; export declare function getInvalidStatusCodeError(statusCode: { expected: HttpStatusCode; received: HttpStatusCode; }, operation: OperationObject, endpoint: Endpoint): ValidationError; export declare function getMultipleSuccessStatusCodesError(statusCodes: HttpStatusCode[], operation: OperationObject, endpoint: Endpoint): ValidationError; export declare function groupByType(validationErrors: ValidationError[]): Record<ValidationErrorType, string[]>;