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

Allow key interpolation of Text ToJSONKey types #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ivanbakel
Copy link

A QoL improvement I had a need for this morning.

This allows for Text keys, which were previously rejected for not being Strings which could be packed into Text. I haven't added encoding the array-style keys, since that would have required modifying larger parts of the codegen logic.

This allows for `Text` keys, which were previously rejected for not
being Strings which could be packed into Text - a weird behaviour.

Only direct-to-Text-style JSON keys are supported at the moment, as
array-style keys are more complex to encode, and would require a change
to the code-generation logic.
@ivanbakel ivanbakel changed the title Allow key interpolation of any ToJSONKey type Allow key interpolation of Text ToJSONKey types Aug 6, 2019
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.

None yet

1 participant