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 nested json not working when rendering destination templates #104

Merged
merged 7 commits into from
Jun 18, 2024

Conversation

tomreitz
Copy link
Collaborator

PR #97 fixed an issue where nested JSON was converted to a string when loaded from a source, but it was still stringified before being provided to a destination template. This PR changes type casting to only apply to bools, ints, and floats (not lists and objects), so nested JSON flows through and is accessible in a destination template.

@tomreitz tomreitz requested a review from johncmerfeld June 18, 2024 16:04
Copy link
Contributor

@johncmerfeld johncmerfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but a little more explanation around the new code would be great

@tomreitz tomreitz merged commit f709b10 into main Jun 18, 2024
@tomreitz tomreitz deleted the fix/nested_json_in_template branch June 18, 2024 16:20
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.

2 participants