metaschema-framework / oscal-cli

https://oscal-cli.metaschema.dev/
Other
3 stars 4 forks source link

Support XPath for XML and JSON Pointer for JSON/YAML in validation output in CLI default and SARIF output modes #32

Open aj-stein-gsa opened 1 month ago

aj-stein-gsa commented 1 month ago

User Story:

As a developer of OSCAL-based tools, in order to transition between different formats more seamlessly in general and processing validation results in particular, I would like the ability to switch from the default Metapaths in constraints' validation results from Metapath to XPath (1.0 or 3.0 flavors TBD) and JSON Pointer

Goals:

Support for:

Dependencies:

{Describe any previous issues or related work that must be completed to start or complete this issue.}

Acceptance Criteria

aj-stein-gsa commented 1 month ago

NOTE: Per previous discussions, I believe the current preference for JSON/YAML to be JSON Pointer, not JSON Path. However, JSON Path recently achieved RFC status in IETF and also has implementation support. Despite being more recent, it has syntax more in alignment with XPath, so I just wanted to surface this for discussion, see more details below in the relevant docs:

/cc @david-waltermire