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 support #15

Open
4 tasks
rkrug opened this issue Oct 13, 2019 · 0 comments
Open
4 tasks

Add yaml support #15

rkrug opened this issue Oct 13, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rkrug
Copy link
Collaborator

rkrug commented Oct 13, 2019

Adding yams support is easy, as a dmdSchemeSet can beconverted directly to a yaml character using the as.yaml() function in as_yaml branch.

IMPORTANT: The export and import has to follow the same logic as the xml, i.e. the round trip needs to be

  • lossless if exported with the complete option
  • lossless if exported with the metadata option and the scheme definition is available
  • not possible when exported with the metadata option and no scheme definition is available

This means, that the definitions also need to be exported when output = complete

  • add generic function and methods for as_yaml() which returns a yaml character and add class yaml_document.
  • add method for yaml_document for as_dmdScheme and as_xml
  • add write_yaml() and read_yaml() functions
  • add all tests
@rkrug rkrug self-assigned this Oct 13, 2019
@rkrug rkrug added the enhancement New feature or request label Oct 13, 2019
@rkrug rkrug changed the title Add yams support Add yaml support Oct 13, 2019
@rkrug rkrug added this to the 1.1.0 milestone Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant