mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
Enable spotless for schema XSD (#4218)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
352dbf2aaa
commit
895dcbb087
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:addon="https://openhab.org/schemas/addon/v1.0.0"
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:addon="https://openhab.org/schemas/addon/v1.0.0"
|
||||
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
|
||||
targetNamespace="https://openhab.org/schemas/addon/v1.0.0">
|
||||
|
||||
@ -22,7 +21,9 @@
|
||||
</xs:element>
|
||||
<xs:element name="service-id" type="xs:string" minOccurs="0">
|
||||
<xs:annotation>
|
||||
<xs:documentation>The ID (service.pid or component.name) of the main add-on service, which can be configured through OSGi configuration admin service. Should only be used in combination with a config description definition. The default value is <type>.<name></xs:documentation>
|
||||
<xs:documentation>The ID (service.pid or component.name) of the main add-on service, which can be configured
|
||||
through OSGi configuration admin service. Should only be used in combination with a config description definition.
|
||||
The default value is <type>.<name></xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:choice minOccurs="0">
|
||||
@ -64,7 +65,8 @@
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="hybrid">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Interaction with external systems, internet access required only for extended functionality (such as discovery)</xs:documentation>
|
||||
<xs:documentation>Interaction with external systems, internet access required only for extended functionality (such
|
||||
as discovery)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:enumeration>
|
||||
<xs:enumeration value="cloud">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:addon="https://openhab.org/schemas/addon/v1.0.0"
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:addon="https://openhab.org/schemas/addon/v1.0.0"
|
||||
xmlns:addon-info-list="https://openhab.org/schemas/addon-info-list/v1.0.0"
|
||||
targetNamespace="https://openhab.org/schemas/addon-info-list/v1.0.0">
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
<xs:element name="config-descriptions">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="config-description" type="config-description:configDescription"
|
||||
minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element name="config-description" type="config-description:configDescription" minOccurs="1"
|
||||
maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
@ -28,38 +28,31 @@
|
||||
|
||||
<xs:complexType name="configDescription">
|
||||
<xs:sequence>
|
||||
<xs:element name="parameter-group" type="config-description:parameterGroup"
|
||||
minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="parameter" type="config-description:parameter"
|
||||
minOccurs="0" maxOccurs="unbounded" />
|
||||
<xs:element name="parameter-group" type="config-description:parameterGroup" minOccurs="0"
|
||||
maxOccurs="unbounded"/>
|
||||
<xs:element name="parameter" type="config-description:parameter" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="uri"
|
||||
type="config-description:uriRestrictionPattern" use="optional" />
|
||||
<xs:attribute name="uri" type="config-description:uriRestrictionPattern" use="optional"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="parameter">
|
||||
<xs:all>
|
||||
<xs:element name="context" type="xs:string" minOccurs="0"/>
|
||||
<!-- deprecated element "required" -->
|
||||
<xs:element name="required" type="xs:boolean" default="false"
|
||||
minOccurs="0" />
|
||||
<xs:element name="required" type="xs:boolean" default="false" minOccurs="0"/>
|
||||
<xs:element name="default" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="options" type="config-description:optionsType"
|
||||
minOccurs="0" />
|
||||
<xs:element name="limitToOptions" type="xs:boolean"
|
||||
minOccurs="0" />
|
||||
<xs:element name="filter" type="config-description:filterType"
|
||||
minOccurs="0" />
|
||||
<xs:element name="options" type="config-description:optionsType" minOccurs="0"/>
|
||||
<xs:element name="limitToOptions" type="xs:boolean" minOccurs="0"/>
|
||||
<xs:element name="filter" type="config-description:filterType" minOccurs="0"/>
|
||||
<xs:element name="advanced" type="xs:boolean" minOccurs="0"/>
|
||||
<xs:element name="verify" type="xs:boolean" minOccurs="0"/>
|
||||
<xs:element name="multipleLimit" type="xs:integer" minOccurs="0"/>
|
||||
<xs:element name="unitLabel" type="xs:string" minOccurs="0"/>
|
||||
</xs:all>
|
||||
<xs:attribute name="name" type="xs:string" use="required"/>
|
||||
<xs:attribute name="type" type="config-description:parameterType"
|
||||
use="required" />
|
||||
<xs:attribute name="type" type="config-description:parameterType" use="required"/>
|
||||
<xs:attribute name="groupName" type="xs:string"/>
|
||||
<xs:attribute name="min" type="xs:decimal"/>
|
||||
<xs:attribute name="max" type="xs:decimal"/>
|
||||
@ -166,8 +159,7 @@
|
||||
</xs:simpleType>
|
||||
|
||||
<xs:complexType name="configDescriptionRef">
|
||||
<xs:attribute name="uri"
|
||||
type="config-description:uriRestrictionPattern" use="required" />
|
||||
<xs:attribute name="uri" type="config-description:uriRestrictionPattern" use="required"/>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"
|
||||
xmlns:update-description="https://openhab.org/schemas/update-description/v1.0.0"
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
|
||||
jaxb:version="2.0" xmlns:update-description="https://openhab.org/schemas/update-description/v1.0.0"
|
||||
xmlns:thing-description="https://openhab.org/schemas/thing-description/v1.0.0"
|
||||
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
|
||||
targetNamespace="https://openhab.org/schemas/update-description/v1.0.0">
|
||||
@ -13,7 +13,8 @@
|
||||
<xs:element name="update-descriptions">
|
||||
<xs:annotation>
|
||||
<xs:documentation>The root element of an update description. It contains the update instructions for managed
|
||||
things after thing-type changes. Instructions are grouped by thing-type and (internal) version.
|
||||
things
|
||||
after thing-type changes. Instructions are grouped by thing-type and (internal) version.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
@ -60,7 +61,8 @@
|
||||
<xs:complexType name="updateChannel">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Update a channel (e.g. change channel-type, label, description). By default, the old
|
||||
configuration and tags are copied to the new channel.
|
||||
configuration
|
||||
and tags are copied to the new channel.
|
||||
</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
|
Loading…
Reference in New Issue
Block a user