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

Create pull request/add yaml to load data #1842

Merged

Conversation

elfsternberg
Copy link
Contributor

A fairly trivial addition; JSON and YAML are handled so similarly that this was a matter of copying the JSON-relevant handlers and editing the copies to handle YAML as well. The test file was literally generated with 'json2yaml'.

Sanity check:

  • I have discussed this with @Keats. He said, "That should be fine."
  • I have checked that there are no other pull requests matching this issue.
  • The PR is pointed to the 'next' branch.
  • The documentation has been updated to reflect the change.
  • The CHANGELOG has been update to reflect the change.
  • There is a unit test to exercise the feature added by this change.

A fairly trivial addition; JSON and YAML are handled so similarly
that this was a matter of copying the JSON-relevant handlers and
editing the copies to handle YAML as well.  The test file was
literally generated with 'json2yaml'.

The documentation has been updated to indicate that load_data() now
handles YAML code.

The CHANGELOG has been updated as well.
I noticed one more place where the list of formats was supported,
and added YAML to that list.

I noticed that there's a singular place to load the `libs::` crate,
and unified by importing of serde_yaml in that place.
@Keats Keats merged commit 77eb9fe into getzola:next Apr 29, 2022
@Keats
Copy link
Collaborator

Keats commented Apr 29, 2022

Thanks!

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