SPDX: Fix missing code for 'not-open-source'
This commit is contained in:
parent
a2c9b6631f
commit
2cdd92868b
|
@ -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"));
|
||||
|
|
|
@ -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" : [{
|
||||
|
|
Loading…
Reference in New Issue