@povio/openapi-codegen-cli 0.3.7 → 0.3.9

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.
@@ -0,0 +1,2 @@
1
+ import yargs from "yargs";
2
+ export declare const command: yargs.CommandModule;
@@ -0,0 +1,6 @@
1
+ import { GenerateOptions } from "src/generators/types/options";
2
+ export type CheckParams = {
3
+ excludeTags: string;
4
+ verbose: boolean;
5
+ } & Pick<GenerateOptions, "input" | "splitByTags" | "defaultTag">;
6
+ export declare function check({ input, excludeTags, verbose, ...params }: CheckParams): Promise<void>;
@@ -1,8 +1,7 @@
1
1
  import { GenerateOptions } from "src/generators/types/options";
2
2
  export type GenerateParams = {
3
- input: string;
4
3
  excludeTags: string;
5
4
  prettier: boolean;
6
5
  verbose: boolean;
7
- } & Pick<GenerateOptions, "output" | "includeNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath">;
6
+ } & Pick<GenerateOptions, "input" | "output" | "includeNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath">;
8
7
  export declare function generate({ input, excludeTags, prettier, verbose, ...params }: GenerateParams): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { OpenAPIV3 } from "openapi-types";
2
+ import { GenerateOptions } from "./types/options";
3
+ export declare function checkOpenAPIDoc({ openApiDoc, options: cliOptions, }: {
4
+ openApiDoc: OpenAPIV3.Document;
5
+ options?: Partial<GenerateOptions>;
6
+ }): string[];
@@ -9,6 +9,7 @@ export declare class SchemaResolver {
9
9
  private zodSchemaData;
10
10
  private compositeZodSchemaData;
11
11
  readonly dependencyGraph: ReturnType<typeof getOpenAPISchemaDependencyGraph>;
12
+ readonly validationErrorMessages: string[];
12
13
  private get docSchemas();
13
14
  private get schemaRefs();
14
15
  constructor(openApiDoc: OpenAPIV3.Document, options: GenerateOptions);
@@ -6,4 +6,7 @@ export declare function getEndpointsFromOpenAPIDoc({ openApiDoc, resolver, optio
6
6
  openApiDoc: OpenAPIV3.Document;
7
7
  resolver: SchemaResolver;
8
8
  options: GenerateOptions;
9
- }): Endpoint[];
9
+ }): {
10
+ endpoints: Endpoint[];
11
+ validationErrorMessages: string[];
12
+ };
@@ -8,4 +8,5 @@ export declare function getDataFromOpenAPIDoc({ openApiDoc, options, }: {
8
8
  }): {
9
9
  resolver: SchemaResolver;
10
10
  data: GenerateData;
11
+ validationErrorMessages: string[];
11
12
  };
@@ -1,4 +1,8 @@
1
1
  export declare function readHbsTemplateSync(fileName: string): string;
2
+ export declare function getFileName({ output, fileName }: {
3
+ output: string;
4
+ fileName: string;
5
+ }): string;
2
6
  export declare function writeTsFileSync({ output, fileName, data }: {
3
7
  output: string;
4
8
  fileName: string;