File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed
scripts/commands/channels Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,34 @@ const xsd = `<?xml version="1.0" encoding="UTF-8"?>
1414 </xs:element>
1515 <xs:element name="channel">
1616 <xs:complexType mixed="true">
17- <xs:attribute name="site" use="required" type="xs:string "/>
18- <xs:attribute name="lang" use="required" type="xs:string "/>
19- <xs:attribute name="site_id" use="required" type="xs:string "/>
17+ <xs:attribute use="required" ref="site "/>
18+ <xs:attribute use="required" ref="lang "/>
19+ <xs:attribute use="required" ref="site_id "/>
2020 <xs:attribute name="xmltv_id" use="required" type="xs:string"/>
2121 <xs:attribute name="logo" type="xs:string"/>
2222 </xs:complexType>
2323 </xs:element>
24+ <xs:attribute name="site">
25+ <xs:simpleType>
26+ <xs:restriction base="xs:string">
27+ <xs:minLength value="1"/>
28+ </xs:restriction>
29+ </xs:simpleType>
30+ </xs:attribute>
31+ <xs:attribute name="site_id">
32+ <xs:simpleType>
33+ <xs:restriction base="xs:string">
34+ <xs:minLength value="1"/>
35+ </xs:restriction>
36+ </xs:simpleType>
37+ </xs:attribute>
38+ <xs:attribute name="lang">
39+ <xs:simpleType>
40+ <xs:restriction base="xs:string">
41+ <xs:minLength value="1"/>
42+ </xs:restriction>
43+ </xs:simpleType>
44+ </xs:attribute>
2445</xs:schema>`
2546
2647program . argument ( '[filepath]' , 'Path to *.channels.xml files to check' ) . parse ( process . argv )
You can’t perform that action at this time.
0 commit comments