-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: simplify openapi #471
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks really nice!
[] as string[] | ||
); | ||
const AVAILABLE_CUSTOM_GEN = Object.values(clientsConfig) | ||
.map((gen) => ('customGenerator' in gen ? gen.customGenerator : null)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧙🏼
"topLevelDomain": "com", | ||
"utilsPackageVersion": "0.2.0" | ||
"utilsPackageVersion": "0.2.0", | ||
"hasRegionalHost": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
best option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love it!!
🧭 What and Why
Ticket: APIC-474
The fix package is now deprecated in favor of the real
openapi-generator-cli
package which now contains the fix for custom generators.Use this opportunity to simplify our
openapitools.json
file and put it in theconfig
folder.When we generate code or CTS, we now generate the final
openapitools.json
file from the config one, and feed it toopenapi-generator-cli
. This way we can have minimal information in our config file.Move all the server setup to the generators instead of openapitools, to have better control.
🧪 Test
CI