fix(config): add openapiGeneratorIgnoreList to the config schema

Merged
IN
2d ago
+120-1

Fixes #1138

As requested by @wing328 in the issue thread, this PR adds the missing openapiGeneratorIgnoreList option to apps/generator-cli/src/config.schema.json.

What was done

  • Added openapiGeneratorIgnoreList to the generator definition in the config schema. Configs using the option (as the reporter does) no longer fail schema validation in editors.
  • The property accepts an array of strings — the shape the reporter uses and the type upstream openapi-generator uses for this option (Set<String> in GeneratorSettings/CodegenConfigurator). A comma separated list is accepted as well, mirroring the --openapi-generator-ignore-list CLI flag.
  • Added ajv-based tests in apps/generator-cli/src/config.schema.spec.ts that validate the schema itself and configs using the new option (arrays, comma separated lists, and invalid values).

Validation

  • nx test generator-cli: 7 suites, 247 tests passed (12 of them the new schema tests)
  • nx lint generator-cli: passes

Summary by cubic

Adds the missing openapiGeneratorIgnoreList option to the generator CLI config schema and fixes how the CLI serializes array config values.

  • The property accepts an array of strings or a comma-separated list, mirroring the --openapi-generator-ignore-list CLI flag, so configs using it no longer fail schema validation in editors.
  • buildCommand now joins array values with commas instead of rendering them as indexed entries, so the option never reached the generator as the intended list.
  • Adds ajv-based schema tests and generator command tests for the option's accepted and rejected values.