SPDX: Fix missing code for 'not-open-source'

This commit is contained in:
Grahame Grieve 2023-06-29 13:14:28 +10:00
parent a2c9b6631f
commit 2cdd92868b
2 changed files with 9 additions and 1 deletions

View File

@ -37,8 +37,12 @@ public class SPDXImporter {
cs.addProperty().setCode("status").setType(PropertyType.CODE).setUri("http://hl7.org/fhir/concept-properties#status");
cs.addProperty().setCode("seeAlso").setType(PropertyType.STRING);
cs.setVersion(json.asString("licenseListVersion"));
ConceptDefinitionComponent cc = cs.addConcept();
cc.setCode("not-open-source");
cc.setDisplay("Not open source");
cc.setDefinition("Not an open source license.");
for (JsonObject l : json.getJsonObjects("licenses")) {
ConceptDefinitionComponent cc = cs.addConcept();
cc = cs.addConcept();
cc.setCode(l.asString("licenseId"));
cc.setDisplay(l.asString("name"));
cc.setDefinition(l.asString("name"));

View File

@ -60,6 +60,10 @@
"type" : "string"
}],
"concept" : [{
"code": "not-open-source",
"display": "Not open source",
"definition": "Not an open source license."
}, {
"code" : "0BSD",
"display" : "BSD Zero Clause License",
"property" : [{