Closed goneall closed 2 months ago
Removing the reference to the missing def, I found the additional validation for misisng defs. They all seem to be in the xxx_derived.anyOf
.
Examples:
Could not resolve schema reference '#/$defs/Artifact'. Path '$defs.Artifact_derived.anyOf[0].anyOf[6]', line 3294, position 25.
Could not resolve schema reference '#/$defs/IntegrityMethod'. Path '$defs.IntegrityMethod_derived.anyOf[0].anyOf[3]', line 1206, position 25.
Could not resolve schema reference '#/$defs/Artifact'. Path '$defs.Element_derived.anyOf[0].anyOf[4]', line 498, position 25.
Could not resolve schema reference '#/$defs/ElementCollection'. Path '$defs.Element_derived.anyOf[0].anyOf[6]', line 500, position 25.
Could not resolve schema reference '#/$defs/expandedlicensing_ExtendableLicense'. Path '$defs.Element_derived.anyOf[0].anyOf[18]', line 512, position 25.
Pilot error - testing on the wrong version
The schema generated from the current SPDX model is not passing validation with the error:
Attached is the JSON Schema output: json-schema-3.0.1.json.txt
Below is the input model and context file: spdx-context.jsonld.txt spdx-model.json-ld.txt