Skip to content

unexpected error: Could not resolve the metaschema of the schema #672

@tschmidtb51

Description

@tschmidtb51

I was trying to validate a JSON instance against its schema:

$ jsonschema validate ../csaf/csaf_2.1/json_schema/csaf.json ../csaf/csaf_2.1/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_1-2024-6-1-06-01.json -r ../csaf/csaf_2.1/json_schema/meta.json -r ../csaf/csaf_2.1/referenced_schema/first/cvss-v2.0_strict.json -r ../csaf/csaf_2.1/referenced_schema/first/cvss-v3.0_strict.json -r ../csaf/csaf_2.1/referenced_schema/first/cvss-v3.1_strict.json -r ../csaf/csaf_2.1/referenced_schema/first/cvss-v4.0.1_strict.json -r ../csaf/csaf_2.1/referenced_schema/certcc/SelectionList_2_0_0.schema.json -r ../csaf/csaf_2.1/json_schema/extension-metaschema.json -r ../csaf/csaf_2.1/json_schema/extension-content.json -v

when the following error occurred:

unexpected error: Could not resolve the metaschema of the schema
Please report it at https://github.com/sourcemeta/jsonschema

So I opened this ticket. You can find all data and schemas at https://github.com/tschmidtb51/csaf/tree/csaf-2-1-csdpr01-feedback_extensions

PS: I patched the $id/id values in the CVSS JSON schemas by removing the part beginning with ? to make the tool work.

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