-
Notifications
You must be signed in to change notification settings - Fork 3
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
behaviour in choice assembly has changed #259
Comments
@david-waltermire I pointed out that I presume this is an error in metaschema-java processing because these are both inline definitions in separate assemblies in the same model, not global, and Metaschema specific this is not a collision right? They are in |
I believe the problem is here. This should not be the static value I think I can work up a test case from here. |
These references don't appear to be choices. I am trying to reproduce the error, but I am having no luck doing so. @wandmagic Can you help me by pointing me to a choice that is not working? Better yet, can you provide a standalone Module and content that illustrates this problem? |
run this command |
…sure schemas are generated directly from the loaded module and not the compiled version. Fixes metaschema-framework#259
this is not yet fixed as of 2.4.0 snapshot: |
this example now works with latest build! the poam issue must be a different issue |
Describe the bug
choice assembly causes strang behaviour.
when I run oscal-cli metaschema-validate on a poam on-date and within date range choice, expects a cardinality of one for both objects, which is impossible.
I was able to fix it by leveraging choice group, but I think for backwards compatability we want choice to work in a mutual exclusive matter.
See this test run
https://github.com/GSA/OSCAL/actions/runs/11972676033/job/33380075445
Who is the bug affecting
OSCAL developers
How do we replicate this issue
check out linked repo and run make configure && make test
Expected behavior (i.e. solution)
poam should be valid when running oscal-cli metaschema validate-content <valid-poam.xml>
Other comments
I originally thought this was a bug in OSCAL metaschema itself, and maybe it is and we need to update to choice group? kindly let us know
The text was updated successfully, but these errors were encountered: