Skip to content

Commit

Permalink
Add typed topic types
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Oct 21, 2024
1 parent 8cb334f commit d6d143a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Schemas/extensions.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<xs:element name="TopicTypes" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="TopicType" type="NonEmptyOrBlankString" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TopicType" type="TopicType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Expand All @@ -29,7 +29,7 @@
<xs:element name="TopicLabels" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="TopicLabel" type="NonEmptyOrBlankString" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="TopicLabel" type="NonEmptyOrBlankString" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
Expand All @@ -50,4 +50,17 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="TopicType">
<xs:simpleContent>
<xs:extension base="NonEmptyOrBlankString">
<xs:attribute name="StatusType" type="TopicLabelEnum" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="TopicLabelEnum">
<xs:restriction base="xs:string">
<xs:enumeration value="open"/>
<xs:enumeration value="closed"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

0 comments on commit d6d143a

Please sign in to comment.