diff --git a/docs-js/features/odata/generate-odata-client.mdx b/docs-js/features/odata/generate-odata-client.mdx index 72ce1202a80..28e7dffa6c5 100644 --- a/docs-js/features/odata/generate-odata-client.mdx +++ b/docs-js/features/odata/generate-odata-client.mdx @@ -114,7 +114,7 @@ Run `generate-odata-client --help` for additional options. | `--verbose` | `false` |  By default, only errors, warnings and important info logs will be displayed. If set to true, all logs will be displayed. | | `--skipValidation` | `false` |  Generation will stop if objects need renaming due to non-unique conditions or conflicts with certain SDK reserved keywords (e.g. `Entity`, `Service`, etc.). If you enable this option, conflicts are resolved by appending postfixes like '\_1'" | | `-c`, `--config` | - | Set the path to the file containing the options for generation. If other flags are used, they overwrite the options set in the configuration file. If a directory is passed, a `config.json` file is read from this directory. | -| `--generateESM` | `false` | Generate ESM compatible code. | +| `--generateEsm` | `false` | Generate ESM compatible code. | ## Generate a Client Programmatically diff --git a/docs-js/features/openapi/generate-openapi-client.mdx b/docs-js/features/openapi/generate-openapi-client.mdx index dd5c379a936..cc92b2816a4 100644 --- a/docs-js/features/openapi/generate-openapi-client.mdx +++ b/docs-js/features/openapi/generate-openapi-client.mdx @@ -107,7 +107,7 @@ Run `openapi-generator --help` for additional options. | `--verbose` | `false` | Turn on verbose logging. | | `--skipValidation` | `false` | By default, the generation fails, when there are duplicate or invalid names for operations and/or path parameters after transforming them to camel case. Set this to true to enable unique and valid name generation. The names will then be generated by appending numbers and prepending prefixes. | | `-c`, `--config` | - | Set the path to the file containing the options for generation. If other flags are used, they overwrite the options set in the configuration file. If a directory is passed, a `config.json` file is read from this directory. | -| `--generateESM` | `false` | Generate ESM compatible code. | +| `--generateEsm` | `false` | Generate ESM compatible code. | ## Generate a Client Programmatically diff --git a/docs-js/release-notes.mdx b/docs-js/release-notes.mdx index f01ed448af5..02d4c4505ff 100644 --- a/docs-js/release-notes.mdx +++ b/docs-js/release-notes.mdx @@ -164,11 +164,11 @@ import LicenseBadge from '@site/src/sap/sdk-js/LicenseBadge'; ### New Features -- [generator, generator-common] Introduce option `generateESM` in OData generator to generate ESM compatible code. (c73c7fa) +- [generator, generator-common] Introduce option `generateEsm` in OData generator to generate ESM compatible code. (c73c7fa) ### Fixed Issues -- [openapi] Fix missing `type: module` in generated `package.json` when `--generateESM` option is enabled. (e09754a) +- [openapi] Fix missing `type: module` in generated `package.json` when `--generateEsm` option is enabled. (e09754a) - [openapi-generator] Improve the handling of arrays of enums (f17ca59) ## 4.1.2 [Core Modules] - September 18, 2025 diff --git a/static/api/v4/interfaces/sap-cloud-sdk_generator-common.CommonGeneratorOptions.html b/static/api/v4/interfaces/sap-cloud-sdk_generator-common.CommonGeneratorOptions.html index 15d03e384dc..ac59c5bee28 100644 --- a/static/api/v4/interfaces/sap-cloud-sdk_generator-common.CommonGeneratorOptions.html +++ b/static/api/v4/interfaces/sap-cloud-sdk_generator-common.CommonGeneratorOptions.html @@ -14,7 +14,7 @@

Interface CommonGeneratorOptions

Generator options shared by the OData and OpenApi generator.

-
interface CommonGeneratorOptions {
    clearOutputDir?: boolean;
    generateESM?: boolean;
    include?: string;
    input: string;
    metadata?: boolean;
    optionsPerService?: string;
    outputDir: string;
    overwrite?: boolean;
    packageJson?: boolean;
    prettierConfig?: string;
    readme?: boolean;
    skipValidation?: boolean;
    transpile?: boolean;
    tsconfig?: string;
    verbose?: boolean;
}
+
interface CommonGeneratorOptions {
    clearOutputDir?: boolean;
    generateEsm?: boolean;
    include?: string;
    input: string;
    metadata?: boolean;
    optionsPerService?: string;
    outputDir: string;
    overwrite?: boolean;
    packageJson?: boolean;
    prettierConfig?: string;
    readme?: boolean;
    skipValidation?: boolean;
    transpile?: boolean;
    tsconfig?: string;
    verbose?: boolean;
}

Hierarchy (View Summary)

-
generateESM?: boolean
+
generateEsm?: boolean

Generate ECMAScript modules instead of CommonJS modules.

-
generateESM?: boolean
+
generateEsm?: boolean

Generate ECMAScript modules instead of CommonJS modules.

diff --git a/static/api/v4/interfaces/sap-cloud-sdk_openapi-generator.OpenAPIGeneratorOptions.html b/static/api/v4/interfaces/sap-cloud-sdk_openapi-generator.OpenAPIGeneratorOptions.html index a1d5f5999fc..60a9fc8389d 100644 --- a/static/api/v4/interfaces/sap-cloud-sdk_openapi-generator.OpenAPIGeneratorOptions.html +++ b/static/api/v4/interfaces/sap-cloud-sdk_openapi-generator.OpenAPIGeneratorOptions.html @@ -14,7 +14,7 @@

Interface OpenAPIGeneratorOptions

Options to configure OpenAPI client generation when using the generator programmatically.

-
interface OpenAPIGeneratorOptions {
    generateESM?: boolean;
    resolveExternal?: boolean;
    schemaPrefix?: string;
}