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

Fix default_value error on enum type #1118

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

haodt
Copy link

@haodt haodt commented Nov 15, 2021

Hello, this PR aiming to fix the issue #1081 for the time being before we could come up with anything better.

Currently i'm trying to understand how notation and schema work so i tried my best at fixing the validation which is desirable for the time being since we are having troubles trying to upgrade our absinthe from 1.5.5 to 1.6.6. This issue caused everything to explode ( we indeed used alot of default value).

Any guidances would be appreciated!

@haodt haodt marked this pull request as ready for review November 19, 2021 02:10
@haodt
Copy link
Author

haodt commented Dec 17, 2021

hey @benwilson512 any thoughts on this one?

@katafrakt
Copy link
Contributor

I just wanted to bump this as I stumbled upon the bug it solves today. The fix looks correct to me. I'd be happy to help if there's something more required to get this merged.

@Helge801
Copy link

Helge801 commented May 4, 2023

Would love to see this merged in. 🙏

@sraka1
Copy link

sraka1 commented May 23, 2023

Bumping this as well. Tagging @benwilson512 again, this seems like a quick merge

@anvox
Copy link

anvox commented Sep 22, 2023

Hey @benwilson512 Do you think we could go with this approach or suggest anything else? This issue blocked us from upgrading absinthe for a long time.

@anvox
Copy link

anvox commented Oct 25, 2023

We came to another workaround that removing default value from enum params. Default value is checked and filled by resolver. It's a bit more code but unblock upgrading.

@HarshBalyan
Copy link
Contributor

@benwilson512 please, review this PR!

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

Successfully merging this pull request may close these issues.

6 participants