fix(config): add openapiGeneratorIgnoreList to the config schema
Merged
IN
2d ago+120+120+012345678901234567890123456789-1-1-0123456789
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
openapiGeneratorIgnoreListto thegeneratordefinition 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>inGeneratorSettings/CodegenConfigurator). A comma separated list is accepted as well, mirroring the--openapi-generator-ignore-listCLI flag. - Added
ajv-based tests inapps/generator-cli/src/config.schema.spec.tsthat 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-listCLI flag, so configs using it no longer fail schema validation in editors. buildCommandnow 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.