Skip to content

Unable to import OSCAL components #1731

@cemasirt

Description

@cemasirt

Describe the bug as a Story
I'm on version v0.9.11.2 and cannot import component definitions I've got from other places

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/GovReady/components-stig and download "components_govready_demo_01\splunk-demo.json"
  2. Click on "Component Library>Import OSCAL Component"
  3. Select and import the downloaded json at step 2.
  4. See error
    IMPORT HALTED. Invalid Component JSON: 1 validation error for ComponentDefinition components value is not a valid list (type=type_error.list)

Expected behavior
Component to be loaded into component list

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome 94.0.4606.81

Developer hints

Another resource with import issue.
https://github.com/GovReady/oscal-lifecycle-examples/blob/main/component/govready-ssp-oscal-cmpt-ubuntu-16.04-lts-stig-inpsec-profile.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions