Skip to content

Commit 1ada110

Browse files
committed
schema/ListedLicense: Drop isDeprecated
deprecatedVersion should be set if and only if isDeprecated was true. So instead of recording that information twice, tooling which consumes this format should just check deprecatedVersion. If deprecatedVersion is non-empty, the license is deprecated. If deprecatedVersion is empty, the license is not deprecated. This protects us from desynchronization like that fixed by cc1e05e (added deprecated version, 2017-12-28), because it is now impossible to deprecate a license without recording the deprecated version.
1 parent 0061b49 commit 1ada110

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

schema/ListedLicense.xsd

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
<element name="text" type="tns:formattedAltTextType" minOccurs="0" maxOccurs="1"/>
4848
</all>
4949
<attribute name="licenseId" type="string" use="required" />
50-
<attribute name="isDeprecated" type="boolean"/>
5150
<attribute name="name" type="string" use="required" />
5251
<attribute name="listVersionAdded" type="string"/>
5352
<attribute name="deprecatedVersion" type="string"/>
@@ -108,15 +107,6 @@
108107
</documentation>
109108
</annotation>
110109
</attribute>
111-
<attribute name="isDeprecated" type="boolean">
112-
<annotation>
113-
<documentation xml:lang="en">
114-
<xhtml:p>
115-
<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.
116-
</xhtml:p>
117-
</documentation>
118-
</annotation>
119-
</attribute>
120110
<attribute name="name" type="string" use="required">
121111
<annotation>
122112
<documentation xml:lang="en">

0 commit comments

Comments
 (0)