Skip to content

Commit

Permalink
Merge pull request #159 from spdx/updatexsd
Browse files Browse the repository at this point in the history
Update the license list XSD
  • Loading branch information
goneall authored Apr 15, 2023
2 parents 2b5adde + e6fd590 commit ad7d78b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion TestFiles/test-license.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</p>
</text>
</license>
<license name="Test Deprecated License" licenseId="test-dep" isOsiApproved="false" isDeprecated="true" deprecatedVersion="2.2">
<license name="Test Deprecated License" licenseId="test-dep" isOsiApproved="false" deprecatedVersion="2.2">
<notes>Test dep note</notes>
<crossRefs>
<crossRef>http://test/url1d</crossRef>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ private static void writeExceptionList(String version, String releaseDate,
}
}
// check for a license ID with the same ID as the exception

addedExceptionsMap.put(nextException.getLicenseExceptionId(), nextException.getLicenseExceptionText());
}
if (licenseIds.contains(nextException.getLicenseExceptionId())) {
Expand Down
10 changes: 0 additions & 10 deletions src/org/spdx/licensexml/ListedLicense.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<element name="text" type="tns:formattedAltTextType" minOccurs="0" maxOccurs="1"/>
</all>
<attribute name="licenseId" type="string" use="required" />
<attribute name="isDeprecated" type="boolean"/>
<attribute name="name" type="string" use="required" />
<attribute name="listVersionAdded" type="string"/>
<attribute name="deprecatedVersion" type="string"/>
Expand Down Expand Up @@ -110,15 +109,6 @@
</documentation>
</annotation>
</attribute>
<attribute name="isDeprecated" type="boolean">
<annotation>
<documentation xml:lang="en">
<xhtml:p>
<xhtml:code>isDeprecated</xhtml:code> is true if and only if the short identifier has been superseded by another. See the <xhtml:code>deprecatedVersion</xhtml:code> documentation for more details.
</xhtml:p>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation xml:lang="en">
Expand Down

0 comments on commit ad7d78b

Please # to comment.