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

Control Mapping in OSCAL JSON Allows an Empty Relationship Object #1458

Closed
aj-stein-nist opened this issue Sep 16, 2022 · 9 comments · Fixed by #1462
Closed

Control Mapping in OSCAL JSON Allows an Empty Relationship Object #1458

aj-stein-nist opened this issue Sep 16, 2022 · 9 comments · Fixed by #1462
Labels
Model Engineering An issue to be discussed during the bi-weekly Model Engineering Meeting question Scope: Modeling Issues targeted at development of OSCAL formats
Milestone

Comments

@aj-stein-nist
Copy link
Contributor

aj-stein-nist commented Sep 16, 2022

Question

@openprivacy pointed out today during the OSCAL Model Meeting in the current version of the develop branch's Control Mapping Model as of 37a3f11, the "relationship": {} can be defined as empty. And relationship has a required minimum cardinality of 1. It is not sure this is intentional or an area for improvement.

@aj-stein-nist aj-stein-nist added question Scope: Modeling Issues targeted at development of OSCAL formats Model Engineering An issue to be discussed during the bi-weekly Model Engineering Meeting labels Sep 16, 2022
@github-actions github-actions bot added this to Needs Triage in Issue Triage Sep 16, 2022
@iMichaela
Copy link
Contributor

@Compton-NIST - Can you please add this issue to the list of the Control Mapping Model issues you planned on reviewing? Even though issue #1333 documents the need of identifying the gaps, empty relationship is most likely not the desired solution but rather a bug.

@Compton-US
Copy link
Contributor

@iMichaela Will do!

@Compton-US Compton-US self-assigned this Sep 20, 2022
@david-waltermire
Copy link
Contributor

david-waltermire commented Sep 20, 2022

I am not sure this is a schema issue.

Looking at the XML and JSON implementations, the relationship value is required.

This appears to be an issue with the generated documentation instead.

david-waltermire added a commit to david-waltermire/OSCAL that referenced this issue Sep 20, 2022
david-waltermire added a commit that referenced this issue Sep 20, 2022
@david-waltermire
Copy link
Contributor

@aj-stein-nist investigated this with me and we identified a JSON schema generation bug that is causing this. usnistgov/metaschema#240 was created to fix the schema generation bug. Nothing more to do here until that issue is resolved.

The documentation is also buggy. Issue usnistgov/metaschema#241 was established to fix this.

Once these issues are addressed and the fixes confirmed, this issue can be closed.

@Compton-US
Copy link
Contributor

To do after fixes:

  • Validate that the relationship is correct in the json schema.
  • Review documentation to ensure it is accurate for relationship.

@david-waltermire david-waltermire removed this from Needs Triage in Issue Triage Sep 27, 2022
aj-stein-nist pushed a commit that referenced this issue Oct 18, 2022
david-waltermire added a commit that referenced this issue Oct 31, 2022
aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this issue Jan 10, 2023
@david-waltermire
Copy link
Contributor

@aj-stein-nist Can you confirm that develop has been updated to point to the latest Metaschema submodule commit?

@david-waltermire david-waltermire linked a pull request Jan 19, 2023 that will close this issue
9 tasks
@aj-stein-nist
Copy link
Contributor Author

@aj-stein-nist Can you confirm that develop has been updated to point to the latest Metaschema submodule commit?

This still needs CI/CD fixes, need to circle back of this during the sprint.

aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this issue Feb 6, 2023
@aj-stein-nist
Copy link
Contributor Author

Sigh also blocked by usnistgov/oscal-content#116. Moving to the following sprint after the recently started one. Marking this as blocked.

aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this issue Jun 29, 2023
aj-stein-nist pushed a commit to aj-stein-nist/OSCAL-forked that referenced this issue Jul 10, 2023
@aj-stein-nist
Copy link
Contributor Author

It appears the relevant work was previously completed and oscal-content testing is no longer necessary, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Model Engineering An issue to be discussed during the bi-weekly Model Engineering Meeting question Scope: Modeling Issues targeted at development of OSCAL formats
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants