-
Notifications
You must be signed in to change notification settings - Fork 14
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(all): factor the version into clients.config.json #496
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.
nice :D
@@ -25,3 +26,11 @@ export function getTestOutputFolder(language: Language): string { | |||
export function getCustomGenerator(language: Language): string { | |||
return clientsConfig[language].customGenerator; | |||
} | |||
|
|||
export function getPackageVersionDefault(language: Language): string { |
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.
Can we add a description with the case for js pls?
@@ -149,4 +153,18 @@ public static void generateServer( | |||
System.exit(1); | |||
} | |||
} | |||
|
|||
// doens't work for javascript | |||
public static String getPackageVersion(String language) { |
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.
Let's throw an error when language.equals("javascript")
with a proper explanation. We will forget this 6 months later, or someone else looking at this code will be lost.
Last review sorry I messed up with the exceptions |
🧭 What and Why
After talk at the tech sync, we decided that spec version are irrelevant and only clients version matter, and to reduce duplication they are now defined in
clients.config.json
(except for js, of course).Changes included:
mainPackage
bypackageVersion
🧪 Test
CI