Factor out local definitions in latest OSCAL metaschemas (where possible) #697
Labels
closable
enhancement
model-refactor
Used to mark issues related to model refactoring for the Metaschema v4 transition.
Scope: Modeling
Issues targeted at development of OSCAL formats
Milestone
User Story:
The next-generation Metaschema provides opportunities for simplification where local definitions can be removed in favor of constraints targeting the fields or flags requiring adjustment.
Example:
Where the metadata metaschema module has:
It could have instead:
The global definition for
prop
is used since defining only constraints for itsname
usage (in the context ofmetadata
) is easier than defining a new fields and flags. The metaschema is tidier and easier to maintain.Occasions of this are relatively easy to find by looking at local definitions mirroring global definitions. The main offender is the
name
flag on theprop
field.Goals:
Functionally, there should be no changes after this improvement, except that documentation should be neater.
Dependencies:
Managing the constraints this way depends on the new constraints enforcement functionality (see Issue #595). This work could be done in conjunction with testing of these features.
Acceptance Criteria
{The items above are general acceptance criteria for all User Stories. Please describe anything else that must be completed for this issue to be considered resolved.}
The text was updated successfully, but these errors were encountered: