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

Yaml decoding fix #5531

Merged
merged 2 commits into from
Oct 21, 2022
Merged

Yaml decoding fix #5531

merged 2 commits into from
Oct 21, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

While working on #5436, I noticed some errors during the YAML parsing; well not errors, but unexpected (for me) values being returned by the genIn method. In collections, the returned thing is not a js object, but a custom data type from the YAML library.

This PR is just to convert collections (YAML sequences and YAML maps) back to plain js objects (even if the function says toJSON() 😅

Benefits

We will be able to use arrays and object fields in the form.

Possible drawbacks

N/A

Applicable issues

Additional information

Note
This PR is part of a series of PRs aimed at closing this milestone. I have split the changes to ease the review process, but as there are many interrelated changes, the tests will be performed in a separate PR (on top of the branch containing all the changes).
PR 2 out of 6

Copy link
Collaborator

@castelblanque castelblanque left a comment

Choose a reason for hiding this comment

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

LGTM

@antgamdia antgamdia merged commit bb64580 into 1-3535-customSchema Oct 21, 2022
@antgamdia antgamdia deleted the 2-5519-yamlDecodingFix branch October 21, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants