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

Add yaml_decode to stdlib #927

Merged
merged 2 commits into from
May 25, 2024
Merged

Add yaml_decode to stdlib #927

merged 2 commits into from
May 25, 2024

Conversation

mattdurham
Copy link
Collaborator

PR Description

This add yaml_decode to standard library, most of the work was taken from code @djcode submitted for Agent/River

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated

@mattdurham mattdurham marked this pull request as ready for review May 24, 2024 14:45
Copy link
Contributor

@wildum wildum left a comment

Choose a reason for hiding this comment

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

LGTM, @rfratto is working on a proposal for the stdlib functions (see #821 (review)). I'm holding on the path_join function but maybe this one is fine because we already have json_decode?

Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

Approved with a small suggestion

docs/sources/reference/stdlib/yaml_decode.md Outdated Show resolved Hide resolved
Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

LGTM, @rfratto is working on a proposal for the stdlib functions (see #821 (review)). I'm holding on the path_join function but maybe this one is fine because we already have json_decode?

I agree that since this follows the convention of the other decode function, it's likely fine to merge in advance of a proposal for fleshing out the standard library. Approving!

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
@mattdurham mattdurham enabled auto-merge (squash) May 25, 2024 18:47
@mattdurham mattdurham merged commit 3631969 into main May 25, 2024
18 checks passed
@mattdurham mattdurham deleted the yaml_decode branch May 25, 2024 18:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants