Skip to content

Unknown configuration options should throw an error #276

Closed
@simonjbeaumont

Description

@simonjbeaumont

Example, if you use featureFlag instead of featureFlags:

generate:
  - types
featureFlag:
  - nullableSchemas

This is easy to do because the CLI is --feature-flag (taking multiple).

We already print the following to stdout:

Swift OpenAPI Generator is running with the following configuration:
- OpenAPI document path: ...
- Configuration path: ...
- Generator modes: types, client
- Feature flags: ...
- Output file names: Types.swift, Client.swift
- Output directory: ...
- Diagnostics output path: <none - logs to stderr>
- Current directory: ...
- Plugin source: <none>
- Is dry run: false
- Additional imports: <none>

Probably should print something here about unknown keys?

Metadata

Metadata

Assignees

Labels

area/generatorAffects: plugin, CLI, config file.kind/enhancementImprovements to existing feature.size/SSmall task. (A couple of hours of work.)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions