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

feat: allow multiple documents in std.parseYaml #205

Merged

Conversation

alexatcanva
Copy link
Contributor

Heya Team 👋

While trying to give sjsonnet a whirl, we noticed a few of our std.parseYaml calls were failing if they included multi doc YAML. (deliminated by the old ---).

This PR allows the yamlToJson function to parse these files/YAML streams and return the appropriate JSON string.

I'm a first time contributor to this repo, and furthermore it's my first time writing Scala.

Please do let me know if there's a better way to accomplish this, I'm more than happy to work through any of the feedback I receive!

Thanks!

@alexatcanva
Copy link
Contributor Author

Heya @lihaoyi-databricks 👋

Is there any chance I could please get a review on this one? ❤️ Thanks!

@stephenamar-db stephenamar-db self-requested a review December 2, 2024 06:32
@stephenamar-db stephenamar-db force-pushed the alexb/allow-multi-documents branch from adf35f6 to 14e3bb1 Compare December 6, 2024 17:21
@stephenamar-db stephenamar-db merged commit d949e7b into databricks:master Dec 6, 2024
1 check passed
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.

3 participants