Skip to content

OSCAL Develop Branch SimpleType Type XSD Generation Missing #1454

@aj-stein-nist

Description

@aj-stein-nist

Describe the bug

In develop branch, CI/CD builds will fail because recent commits that add missing schema definitions for important simple types used by complex types in OSCAL per their Metaschema definitions, for example, DateTimeDatatype as exhibited and reported from user contributions with CIS and their OSCAL catalogs. I found this through testing the CI in my fork. See below.

Example CI/CD complete build logging and the snippet is below:

XML Schema validation failed for 'src/catalogs/xml/cis-controls-v8_OSCAL-1.0.xml' using schema 'xml/schema/oscal_catalog_schema.xsd'.
/home/runner/work/CISControls_OSCAL/CISControls_OSCAL/git-content/OSCAL/xml/schema/oscal_catalog_schema.xsd:2058: element simpleType: Schemas parser error : simple type 'DateTimeWithTimezoneDatatype', attribute 'base': The QName value '{http://csrc.nist.gov/ns/oscal/1.0}DateTimeDatatype' does not resolve to a(n) simple type definition.

Commit usnistgov/metaschema@f28a588 happens before the commit usnistgov/metaschema@1e08f4b that fixes this in the most current metaschema develop. Commit usnistgov/metaschema@f28a588 is the current position in OSCAL's develop branch in 37a3f11.

Who is the bug affecting

OSCAL tool developers using NIST OSCAL Team's CI/CD as a reference and starting point.

What is affected by this bug

CI/CD

How do we replicate this issue

  1. Check oscal-content, CISControls_OSCAL, or any repo using the older submodule at commit missing the relevant XSD type file generated correctly.
  2. Observe build failing and logging generation errors.

Expected behavior (i.e. solution)

The CI/CD successfully copies and converts content.

Other comments

No response

Metadata

Metadata

Assignees

Labels

Scope: CI/CDEnhancements to the project's Continuous Integration and Continuous Delivery pipeline.bug

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions