@povio/openapi-codegen-cli 0.4.5 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,4 +5,5 @@ export declare const getAbilityAction: (endpoint: Endpoint) => string | undefine
5
5
  export declare const getAbilitySubject: (endpoint: Endpoint) => string | undefined;
6
6
  export declare const hasAbilityConditions: (endpoint: Endpoint) => boolean;
7
7
  export declare const getAbilityConditionsTypes: (endpoint: Endpoint) => import("../../types/endpoint").AclConditionsPropertyType[] | undefined;
8
+ export declare const getAbilityDescription: (endpoint: Endpoint) => string | undefined;
8
9
  export declare const getTagAllAbilitiesName: (tag: string) => string;
@@ -11,6 +11,8 @@ export declare function mapEndpointParamsToFunctionParams(resolver: SchemaResolv
11
11
  type: string;
12
12
  paramType: "Body" | "Query" | "Header" | "Path";
13
13
  required: boolean;
14
+ parameterObject: OpenAPIV3.ParameterObject | undefined;
15
+ bodyObject: OpenAPIV3.RequestBodyObject | undefined;
14
16
  }[];
15
17
  export declare function getEndpointConfig(endpoint: Endpoint): {
16
18
  headers?: Record<string, string> | undefined;
@@ -8,4 +8,5 @@ export declare const removeSuffix: (text: string, suffix: string) => string;
8
8
  export declare const getLongestMostCommon: (strs: string[]) => string | undefined;
9
9
  export declare const getMostCommonAdjacentCombinationSplit: (strs: string[]) => string | undefined;
10
10
  export declare const splitByUppercase: (str: string) => string[];
11
+ export declare const camelToSpaceSeparated: (text: string) => string;
11
12
  export declare const getAdjacentStringCombinations: (strs: string[], ignoreStrs?: string[]) => string[];
@@ -1,9 +1,11 @@
1
- import { EndpointParameter } from "../types/endpoint";
1
+ import { Endpoint, EndpointParameter } from "../types/endpoint";
2
+ import { OperationObject } from "../types/openapi";
2
3
  import { ValidationError, ValidationErrorType } from "../types/validation";
3
4
  export declare function getInvalidSchemaError(message: string): ValidationError;
4
5
  export declare function getInvalidOperationIdError(operationId: string): ValidationError;
5
6
  export declare function getMissingPathParameterError(params: EndpointParameter[], path: string): ValidationError;
6
7
  export declare function getNotAllowedInlineEnumError(message: string): ValidationError;
7
8
  export declare function getNotAllowedCircularSchemaError(message: string): ValidationError;
8
- export declare function getMissingAclConditionPropertyError(propertyName: string, operationId: string): ValidationError;
9
+ export declare function getMissingAclConditionPropertyError(propertyName: string, operation: OperationObject, endpoint: Endpoint): ValidationError;
10
+ export declare function getMissingStatusCodeError(statusCode: string, operation: OperationObject, endpoint: Endpoint): ValidationError;
9
11
  export declare function groupByType(validationErrors: ValidationError[]): Record<ValidationErrorType, string[]>;