mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update lint.mts
This commit is contained in:
parent
3fbbc0e6db
commit
426525e3b2
1 changed files with 24 additions and 3 deletions
|
@ -14,13 +14,34 @@ const xsd = `<?xml version="1.0" encoding="UTF-8"?>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="channel">
|
<xs:element name="channel">
|
||||||
<xs:complexType mixed="true">
|
<xs:complexType mixed="true">
|
||||||
<xs:attribute name="site" use="required" type="xs:string"/>
|
<xs:attribute use="required" ref="site"/>
|
||||||
<xs:attribute name="lang" use="required" type="xs:string"/>
|
<xs:attribute use="required" ref="lang"/>
|
||||||
<xs:attribute name="site_id" use="required" type="xs:string"/>
|
<xs:attribute use="required" ref="site_id"/>
|
||||||
<xs:attribute name="xmltv_id" use="required" type="xs:string"/>
|
<xs:attribute name="xmltv_id" use="required" type="xs:string"/>
|
||||||
<xs:attribute name="logo" type="xs:string"/>
|
<xs:attribute name="logo" type="xs:string"/>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
<xs:attribute name="site">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:attribute>
|
||||||
|
<xs:attribute name="site_id">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:attribute>
|
||||||
|
<xs:attribute name="lang">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:minLength value="1"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:attribute>
|
||||||
</xs:schema>`
|
</xs:schema>`
|
||||||
|
|
||||||
program.argument('[filepath]', 'Path to *.channels.xml files to check').parse(process.argv)
|
program.argument('[filepath]', 'Path to *.channels.xml files to check').parse(process.argv)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue