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

Support explicit imports of xml documents into trestle project via conversion to json. #178

Closed
butler54 opened this issue Oct 20, 2020 · 2 comments
Assignees
Labels
core Relates to the foundation of trestle

Comments

@butler54
Copy link
Collaborator

butler54 commented Oct 20, 2020

Challenge.

  • External entities may produce only xml documents
  • Trestle is anchored w.r.t json/ yaml
  • xml-> json conversion requires less than easy to install libraries

Solution

  • Trestle only to support XML via an explicit import which does a conversion.
    e.g. trestle xml-import -f path_to_xml.xml -o my_catalog this needs to be part of an external plugin (e.g. the Fedramp extension).

Completion criteria

  • xml-import is part of compliance-trestle-fedramp
  • xml-import can pull from remote environments using caching / remote functionality in trestle
  • Add to core trestle documentation in error handling to notify users if an xml OSCAL document is encountered an point to trestle doc page on what to do
    • Example scenario: json ssp refers to xml profile. In this case we can error with message on what you should do.
@butler54 butler54 added the core Relates to the foundation of trestle label Mar 31, 2021
@butler54 butler54 changed the title As a user I want to be able to reference 'upstream' OSCAL documents that are of json schema. As a user I want to be able to reference 'upstream' OSCAL documents that are XML Aug 12, 2021
@butler54 butler54 changed the title As a user I want to be able to reference 'upstream' OSCAL documents that are XML Support explicit imports of xml documents into trestle project via conversion to json. Dec 6, 2021
@butler54
Copy link
Collaborator Author

butler54 commented Dec 6, 2021

@vikas-agarwal76 - can you confirm the current state for xml import? I believe we are (at a minimum) missing the docs.

@jpower432
Copy link
Member

The oscal-cli fulfills this requirement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relates to the foundation of trestle
Projects
None yet
Development

No branches or pull requests

3 participants