Skip to main content

RunGeneratorContext

@the-codegen-project/cliDocs


Home / RunGeneratorContext

Interface: RunGeneratorContext

Properties

PropertyTypeDefined in
asyncapiDocument?AsyncAPIDocumentInterfacesrc/codegen/types.ts:141
configFilePathstringsrc/codegen/types.ts:139
configuration{ $schema: string; generators: ( | { 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; preset: "parameters"; serializationType: "json"; } | { asyncapiGenerateForOperations: boolean; asyncapiReverseOperations: boolean; dependencies: string[]; functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>; id: string; kafkaTopicSeparator: string; language: "typescript"; outputPath: string; parameterGeneratorId: string; payloadGeneratorId: string; preset: "channels"; protocols: ("nats" | "kafka" | "mqtt" | "amqp")[]; } | { 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"; }src/codegen/types.ts:138
configuration.$schema?stringsrc/codegen/types.ts:108
configuration.generators( | { 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; preset: "parameters"; serializationType: "json"; } | { asyncapiGenerateForOperations: boolean; asyncapiReverseOperations: boolean; dependencies: string[]; functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>; id: string; kafkaTopicSeparator: string; language: "typescript"; outputPath: string; parameterGeneratorId: string; payloadGeneratorId: string; preset: "channels"; protocols: ("nats" | "kafka" | "mqtt" | "amqp")[]; } | { 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; })[]src/codegen/types.ts:122
configuration.inputPathstringsrc/codegen/types.ts:115
configuration.inputType"asyncapi"src/codegen/types.ts:114
configuration.language?"typescript"src/codegen/types.ts:116
documentPathstringsrc/codegen/types.ts:140