Skip to content

Certain prop>values have restrictions for data type or allowed values #2042

Open
@Telos-sa

Description

@Telos-sa

User Story

Several prop>value(s) have data type or allowed value restrictions that are not outlined in the schema. For example, the system-characteristic props for 'cloud-service-model' and 'cloud-deployment-model' both require the values to be a token, and to match one of the allowed values. These restrictions are not outlined in the schema, and the only restriction for prop>value is string data type (regex pattern "\S(.*\S)?").
Screenshot 2024-09-13 at 5 47 44 PM
Screenshot 2024-09-13 at 5 51 50 PM
There are other instances of this such as:
users>prop>name="type"
inventory-items>prop>name="allows-authenticated-scan"&"is-scanned"

Additionally, some prop>value's have data type restrictions as well (datetime example):
Screenshot 2024-09-13 at 5 54 19 PM
This restrictions is not outlined in the schema, and the only restriction for prop>value is string data type (regex pattern "\S(.*\S)?").

Goals

Introduce prop restrictions in the schema for these special cases

This could be in the form of custom prop structures for these special cases (rather than all props being assembled the same way)
Or
Add these in as actual elements, rather than as props, and provide an "enum" sub-element for them like status:
Screenshot 2024-09-13 at 6 00 15 PM

Dependencies

No response

Acceptance Criteria

  • All OSCAL website and readme documentation affected by the changes in this issue have been updated. Changes to the OSCAL website can be made in the docs/content directory of your branch.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.

(For reviewers: The wiki has guidance on code review and overall issue review for completeness.)

Revisions

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions