zodAsyncAPICodegenConfiguration
@the-codegen-project/cli • Docs
Home / zodAsyncAPICodegenConfiguration
Variable: zodAsyncAPICodegenConfiguration
const zodAsyncAPICodegenConfiguration: ZodObject<{
$schema: ZodOptional<ZodString>;
generators: ZodArray<ZodUnion<[ZodObject<{
dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>;
enum: ZodDefault<ZodOptional<ZodEnum<[..., ...]>>>;
id: ZodDefault<ZodOptional<ZodString>>;
language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>;
map: ZodDefault<ZodOptional<ZodEnum<[..., ..., ...]>>>;
outputPath: ZodDefault<ZodOptional<ZodString>>;
preset: ZodDefault<ZodLiteral<"payloads">>;
rawPropertyNames: ZodDefault<ZodOptional<ZodBoolean>>;
serializationType: ZodDefault<ZodOptional<ZodLiteral<"json">>>;
useForJavaScript: ZodDefault<ZodOptional<ZodBoolean>>;
}, "strip", ZodTypeAny, {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}, {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}>, ZodObject<{
dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>;
id: ZodDefault<ZodOptional<ZodString>>;
language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>;
outputPath: ZodDefault<ZodString>;
preset: ZodDefault<ZodLiteral<"parameters">>;
serializationType: ZodDefault<ZodOptional<ZodLiteral<"json">>>;
}, "strip", ZodTypeAny, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}>, ZodObject<{
dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>;
id: ZodDefault<ZodOptional<ZodString>>;
language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>;
outputPath: ZodDefault<ZodString>;
parameterGeneratorId: ZodDefault<ZodOptional<ZodString>>;
payloadGeneratorId: ZodDefault<ZodOptional<ZodString>>;
preset: ZodDefault<ZodLiteral<"channels">>;
protocols: ZodDefault<ZodArray<ZodEnum<[...]>, "many">>;
}, "strip", ZodTypeAny, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: "nats"[];
}, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: "nats"[];
}>]>, "many">;
inputPath: ZodString;
inputType: ZodLiteral<"asyncapi">;
language: ZodOptional<ZodEnum<["typescript"]>>;
}, "strip", ZodTypeAny, {
$schema: string;
generators: (
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}
| {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: "nats"[];
}
| {
channelsGeneratorId: string;
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "client";
protocols: "nats"[];
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "headers";
serializationType: "json";
}
| {
dependencies: string[];
id: string;
options: any;
preset: "custom";
renderFunction: (...args) => any;
})[];
inputPath: string;
inputType: "asyncapi";
language: "typescript";
}, {
$schema: string;
generators: (
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}
| {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: "nats"[];
}
| {
channelsGeneratorId: string;
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "client";
protocols: "nats"[];
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "headers";
serializationType: "json";
}
| {
dependencies: string[];
id: string;
options: any;
preset: "custom";
renderFunction: (...args) => any;
})[];
inputPath: string;
inputType: "asyncapi";
language: "typescript";
}>;
Type declaration
Name | Type | Defined in |
---|---|---|
$schema | ZodOptional <ZodString > | src/codegen/types.ts:104 |
generators | ZodArray <ZodUnion <[ZodObject <{ dependencies : ZodDefault <ZodOptional <ZodArray <ZodString , "many" >>>; enum : ZodDefault <ZodOptional <ZodEnum <[..., ...]>>>; id : ZodDefault <ZodOptional <ZodString >>; language : ZodDefault <ZodOptional <ZodLiteral <"typescript" >>>; map : ZodDefault <ZodOptional <ZodEnum <[..., ..., ...]>>>; outputPath : ZodDefault <ZodOptional <ZodString >>; preset : ZodDefault <ZodLiteral <"payloads" >>; rawPropertyNames : ZodDefault <ZodOptional <ZodBoolean >>; serializationType : ZodDefault <ZodOptional <ZodLiteral <"json" >>>; useForJavaScript : ZodDefault <ZodOptional <ZodBoolean >>; }, "strip" , ZodTypeAny , { dependencies : string []; enum : "enum" | "union" ; id : string ; language : "typescript" ; map : "map" | "indexedObject" | "record" ; outputPath : string ; preset : "payloads" ; rawPropertyNames : boolean ; serializationType : "json" ; useForJavaScript : boolean ; }, { dependencies : string []; enum : "enum" | "union" ; id : string ; language : "typescript" ; map : "map" | "indexedObject" | "record" ; outputPath : string ; preset : "payloads" ; rawPropertyNames : boolean ; serializationType : "json" ; useForJavaScript : boolean ; }>, ZodObject <{ dependencies : ZodDefault <ZodOptional <ZodArray <ZodString , "many" >>>; id : ZodDefault <ZodOptional <ZodString >>; language : ZodDefault <ZodOptional <ZodLiteral <"typescript" >>>; outputPath : ZodDefault <ZodString >; preset : ZodDefault <ZodLiteral <"parameters" >>; serializationType : ZodDefault <ZodOptional <ZodLiteral <"json" >>>; }, "strip" , ZodTypeAny , { dependencies : string []; id : string ; language : "typescript" ; outputPath : string ; preset : "parameters" ; serializationType : "json" ; }, { dependencies : string []; id : string ; language : "typescript" ; outputPath : string ; preset : "parameters" ; serializationType : "json" ; }>, ZodObject <{ dependencies : ZodDefault <ZodOptional <ZodArray <ZodString , "many" >>>; id : ZodDefault <ZodOptional <ZodString >>; language : ZodDefault <ZodOptional <ZodLiteral <"typescript" >>>; outputPath : ZodDefault <ZodString >; parameterGeneratorId : ZodDefault <ZodOptional <ZodString >>; payloadGeneratorId : ZodDefault <ZodOptional <ZodString >>; preset : ZodDefault <ZodLiteral <"channels" >>; protocols : ZodDefault <ZodArray <ZodEnum <[...]>, "many" >>; }, "strip" , ZodTypeAny , { dependencies : string []; id : string ; language : "typescript" ; outputPath : string ; parameterGeneratorId : string ; payloadGeneratorId : string ; preset : "channels" ; protocols : "nats" []; }, { dependencies : string []; id : string ; language : "typescript" ; outputPath : string ; parameterGeneratorId : string ; payloadGeneratorId : string ; preset : "channels" ; protocols : "nats" []; }>]>, "many" > | src/codegen/types.ts:108 |
inputPath | ZodString | src/codegen/types.ts:106 |
inputType | ZodLiteral <"asyncapi" > | src/codegen/types.ts:105 |
language | ZodOptional <ZodEnum <["typescript" ]>> | src/codegen/types.ts:107 |