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

Implement YAML data module #2

Merged

Conversation

LakshanWeerasinghe
Copy link
Contributor

@LakshanWeerasinghe LakshanWeerasinghe commented May 17, 2024

Purpose

This PR contains all the functionalities that we are going to provide with data.yaml ballerina library. Key features of this Library are,

  • parseString, parseBytes and parseStream apis users can use to create Ballerina values with or without Projection.
  • parsing support for both yaml documents and yaml stream of documents.
  • Support for Fail Safe, JSON, Core Schema parsing using options.
  • toYamlString library to convert a Ballerina value to a yaml string.
  • Compile time expected type checking for parse apis.

Fixes: library-issue-6089

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@@ -0,0 +1,321 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to change this file name as YamlTraverse

Copy link
Contributor Author

@LakshanWeerasinghe LakshanWeerasinghe May 20, 2024

Choose a reason for hiding this comment

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

No, because we are traversing over a Json value. Any input @prakanth97?

Copy link

codecov bot commented Jun 5, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@LakshanWeerasinghe LakshanWeerasinghe changed the base branch from main to data-yaml June 10, 2024 04:32
@LakshanWeerasinghe LakshanWeerasinghe merged commit f169ff1 into ballerina-platform:data-yaml Jun 10, 2024
3 of 5 checks 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.

Implement data.yaml module
3 participants