Open jimschubert opened 4 years ago
š Thanks for opening this issue! š· I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Have you checked the Config Option useTags? It defaults to false
, which has an impact on theway apis or apisToGenerate are evaluated. Maybe it is not really a Bug but more so a documentation Issue.
We faced the same issue for
<generatorName>java</generatorName>
<library>resttemplate</library>
Using title-cased tag name solved the issue. Apparently this is a bug in the generator-api
Bug Report Checklist
Description
This may be related only to Spring generator.
If a user has a tag defined as
devices
, the user will have to request-Dapis=Devices
(or<apis>Devices</apis>
in Maven). This isn't intuitive.This was found by a user in Slack. I repro'd with:
openapi-generator version
4.3.0-SNAPSHOT (as of today) and below
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Copied above maven config into maven example
java-client.xml
and ran.Related issues/PRs
Suggest a fix
Support both title and lower cases.