-
Notifications
You must be signed in to change notification settings - Fork 530
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
Default values not rendered in the sdl #1110
base: main
Are you sure you want to change the base?
Conversation
affa92c
to
5b751bf
Compare
c64976d
to
e5cf7b9
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.
@SvenW thank you for taking a crack at this!
Can you include some test case for list values, object values, and then nested combinations of lists / objects?
I think we should identify the source of the problem first... It seems like perhaps it's a difference between SDL & Macro schemas. SDL schema does correctly render default values: Macro schema doesn't render default values:
This is probably another situation where the SDL & Macro schemas generate different structs when they are compiled. |
Ok, so what's the way forward here. Are you guys digging in to the issue? Can I help in some way? |
I do not have time to dive into this, so @SvenW if you have time to look at the blueprints generated by both SDL and regular schemas that'd be the place to start. |
So I've started to dig into this a little bit. |
When specifying default values in input arguments they aren't rendered in the sdl, using
Absinthe.Schema.to_sdl