-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(cts): improve oneOf matching with enum #1964
Conversation
✅ Deploy Preview for api-clients-automation ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
lambdas.put("escapeReserved", new EscapeDartLambda()); | ||
lambdas.put("escapeDollarSign", new EscapeDollarSignLambda()); | ||
lambdas.put("lowerCamelCase", new LowerCamelCaseLambda()); |
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.
do you know the use case for those lambdas @aallam ?
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 remember some of them where used for dart, but I can't find the usage anymore! maybe got refactored away!
✗ 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.
INSANE
there's so many cases where this will allow us to write more tests
yes this is like a discriminator, but automatic 😀 |
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.
GGG!!
(just realized PHP tests are not formatted, that's weird)
yeah I'm not sure why I'll try to make it work in another PR |
🧭 What and Why
🎟 JIRA Ticket: DI-1384
Fix oneOf matching for
EventItem
, by checking that the enum string is allowed.It uses the tests cases added and removed in #1647.
Also clean up unused lambdas.