Skip to content
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

Issue in tests: duplicated method "defaultValue" in testComplexAnyOf #317

Open
rafaelgonzalezsimon opened this issue Feb 6, 2024 · 2 comments
Assignees

Comments

@rafaelgonzalezsimon
Copy link

It was detected in testComplexAnyOf .
The object definition "enumField" has "defaultValue" and "defaultValues" parameters and this creates duplicate method defaultValue, one for the defaultValues builder and the other for the defaultValue parameter.

It can be fixed by removing the parameter "defaultValue" from "enumFiled".

Copy link

github-actions bot commented Feb 6, 2024

Thank you for collaborating with the project by giving us feedback! Cheers!

@jemacineiras
Copy link
Contributor

Hi,
That is not an issue that defaultValues is a List so Builder we generate will contain a method for a defaultValues(List and a defaultValue to add a single element to the list.
In that example, the file was right but the builder generate a controversial one, since is a legal one but not a valid one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants