oscal-react-library
oscal-react-library copied to clipboard
Support editing metadata Roles
Description
As a catalog author, I want to edit Roles in regard to metadata.
Acceptance Criteria
rolescan be edited and saved within the React library- After saving changes, the
rolesfield is sent to the REST API following the specification using the best available method
Proposed Solution
It is likely best to either (a) add new routes to the API specification to support metadata editing; or (b) use the PATCH /{documentType}/{id} routes
Additional Notes
No response
Implementation
- [ ] I can (or plan to) submit a pull request to implement this
- [ ] Implementing this may result in a breaking change
Need to honor canonical roles defined by NIST and offer the ability to add other roles with an assigned ID.
See metaschema and supporting files (not appearing in NIST documentation) https://github.com/usnistgov/OSCAL/blob/main/src/metaschema/shared-constraints/allowed-values-responsible-roles-system.ent https://github.com/usnistgov/OSCAL/blob/main/src/metaschema/shared-constraints/allowed-values-responsible-roles-operations.ent https://github.com/usnistgov/OSCAL/blob/main/src/metaschema/shared-constraints/allowed-values-responsible-roles-component-production.ent https://github.com/usnistgov/OSCAL/blob/0dfb7123488576b016ca58806033bfc9b6be8e0b/src/metaschema/oscal_metadata_metaschema.xml#L103
@Bronstrom to split into two tasks.