-
Notifications
You must be signed in to change notification settings - Fork 21
chore(deps): upgrade openapi-generator to v6 APIC-502 #685
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
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
85239e9
to
9fe5ef1
Compare
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.
Looks really clean! Some suggestions on the model name
the blocker is only here because some unwanted files are deleted, waiting for #693
@@ -29,6 +29,7 @@ get: | |||
description: A list of users count with their date. | |||
items: | |||
type: object | |||
title: analyticsUser |
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.
UserWithDate
?
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.
userWithDateAndCount
? I feel like for a lot of those it doesn't bring value to say their properties in their name, that's why I choose to prefix by analytics
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.
IMO as we are in an Analytics context, we don't need to prefix it, I'd rather see UserWithAnalaytics
or descriptive like you suggested
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.
I'm fine with userWithDateAndCount
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.
Looks good. If it was me, I would be more specific for naming things (see my suggestions), but I'll let you decide if you prefer yours. Just make sure to stay consistent with the use of lowercase for the first letter.
@@ -35,6 +35,7 @@ get: | |||
description: A list of click-through rate events with their date. | |||
items: | |||
type: object | |||
title: clickEvent |
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.
clickThroughRateEvent
?
@@ -29,6 +29,7 @@ get: | |||
description: A list of search events with their date and count. | |||
items: | |||
type: object | |||
title: searchEvent |
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.
searchCountEvent
?
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.
we say A list of search events
in the description, not sure what search count event mean
@@ -29,6 +29,7 @@ get: | |||
description: A list of users count with their date. | |||
items: | |||
type: object | |||
title: analyticsUser |
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.
I'm fine with userWithDateAndCount
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
🎟 JIRA Ticket: APIC-502
Upgrade openapi-generator to v6, this changes a lot of model name because every nested object in the spec get prefixed with
Inner
now, and it's very ugly so I had to rename everything with something clearer, maybe we could enforce that with eslint.There isn't that many changes generators side, some simplification and less type casting.
The behavior of the
additionalProperties: true
changed from being interpreted asObject
toAnyType
so some of our gen broke and I had to override some method for java. Python should also be impacted by this, so let's not forget those changes.🧪 Test
CI