Optional
clearDelete EVERYTHING in the specified output directory before generating code.
Optional
includeInclude files matching the given glob into the root of each generated client directory.
Specify the path to the directory or file containing the service definition(s) to generate clients for. Throws an error if the path does not exist.
Optional
metadataHidden option only for internal usage - generate metadata for API hub integration.
Optional
optionsConfiguration file to ensure consistent names between multiple generation runs with updated / changed metadata files.
The configuration allows to set a directoryName
and npmPackageName
for every service, identified by the path to the original file.
It also makes sure that names do not change between generator runs.
If a directory is passed, a options-per-service.json
file is read/created in this directory.
Directory to save the generated code in.
Optional
overwriteExit when encountering a file that already exists.
When set to true, it will be overwritten instead.
Note, that compared to the clearOutputDir
option, this will not delete outdated files.
Optional
packageGenerate a package.json
file, specifying dependencies and scripts for compiling.
Optional
prettierSpecify the path to the prettier config. If not given a default config will be used for the generated sources.
Optional
readmeGenerate default README.md
files in the client directories.
Optional
skipGeneration will stop if objects need renaming due to non-unique conditions or conflicts to JavaScript keywords. If you enable this option, conflicts are resolved by appending postfixes like '_1".
Optional
transpileWhen enabled, generates transpiled .js
, .js.map
, and .d.ts
files.
By default, only .ts
files are generated.
Optional
tsconfigReplace the default tsconfig.json
by passing a path to a custom configuration.
By default, a tsconfig.json
is only generated when transpilation is enabled (transpile
).
If a directory is passed, a tsconfig.json
file is read from this directory.
Optional
verboseBy default, only errors, warnings and important info logs will be displayed. If set to true, all logs will be displayed.
Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.
Generator options shared by the OData and OpenApi generator.