Skip to content

Commit 4ae7025

Browse files
committed
Merge branch 'main' into kt-transition
2 parents 919d522 + a3e8a5d commit 4ae7025

File tree

3 files changed

+56
-16
lines changed

3 files changed

+56
-16
lines changed

.github/workflows/gradle-publish-base.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
run: |
5050
mv LICENSE.txt memory-footprint_LICENSE.txt
5151
mv third_party/wff/LICENSE.txt dwf-format-2-validator-1.0_LICENSE.txt
52-
52+
- name: Create XSD archive
53+
run: |
54+
cd third_party/wff/specification/documents/
55+
zip -r wff-xsd.zip *
5356
- name: Release all jars
5457
uses: "marvinpinto/action-automatic-releases@latest"
5558
with:
@@ -62,3 +65,4 @@ jobs:
6265
dwf-format-2-validator-1.0_LICENSE.txt
6366
**/memory-footprint.jar
6467
**/dwf-format-2-validator-1.0.jar
68+
**/wff-xsd.zip

third_party/wff/specification/documents/1/common/attributes/sourceType.xsd

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,9 @@
184184
</xs:restriction>
185185
</xs:simpleType>
186186

187-
<xs:simpleType name="miscSourceType">
188-
<xs:annotation>
189-
<xs:documentation>
190-
Miscellaneous sources
191-
</xs:documentation>
192-
</xs:annotation>
193-
<xs:restriction base="xs:string">
194-
<xs:enumeration value="SUPPORTED_FORMAT_VERSION"/>
195-
</xs:restriction>
196-
</xs:simpleType>
197187
<xs:simpleType name="sourceType">
198188
<xs:union
199189
memberTypes="timeSourceType languageSourceType batterySourceType moonPhaseSourceType
200-
sensorSourceType healthSourceType notificationSourceType miscSourceType"/>
190+
sensorSourceType healthSourceType notificationSourceType"/>
201191
</xs:simpleType>
202192
</xs:schema>

third_party/wff/specification/documents/2/common/attributes/sourceType.xsd

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,65 @@
185185
</xs:restriction>
186186
</xs:simpleType>
187187

188-
<xs:simpleType name="miscSourceType">
188+
<xs:simpleType name="_weatherSourceEnums">
189189
<xs:annotation>
190190
<xs:documentation>
191-
Miscellaneous sources
191+
Weather source enumeration values
192192
</xs:documentation>
193193
</xs:annotation>
194194
<xs:restriction base="xs:string">
195-
<xs:enumeration value="SUPPORTED_FORMAT_VERSION"/>
195+
<xs:enumeration value="WEATHER.IS_AVAILABLE"/>
196+
<xs:enumeration value="WEATHER.IS_ERROR"/>
197+
<xs:enumeration value="WEATHER.CONDITION"/>
198+
<xs:enumeration value="WEATHER.CONDITION_NAME"/>
199+
<xs:enumeration value="WEATHER.IS_DAY"/>
200+
<xs:enumeration value="WEATHER.TEMPERATURE"/>
201+
<xs:enumeration value="WEATHER.TEMPERATURE_UNIT"/>
202+
<xs:enumeration value="WEATHER.TEMPERATURE_LOW"/>
203+
<xs:enumeration value="WEATHER.TEMPERATURE_HIGH"/>
204+
<xs:enumeration value="WEATHER.CHANCE_OF_PRECIPITATION"/>
205+
<xs:enumeration value="WEATHER.WEATHER.UV_INDEX"/>
206+
<xs:enumeration value="WEATHER.WEATHER.LAST_UPDATED"/>
196207
</xs:restriction>
197208
</xs:simpleType>
209+
210+
<xs:simpleType name="_weatherSourcePatterns">
211+
<xs:annotation>
212+
<xs:documentation>
213+
Weather source patterns
214+
</xs:documentation>
215+
</xs:annotation>
216+
<xs:restriction base="xs:string">
217+
<xs:pattern value="WEATHER.HOURS\.\d+\.IS_AVAILABLE"/>
218+
<xs:pattern value="WEATHER.HOURS\.\d+\.CONDITION"/>
219+
<xs:pattern value="WEATHER.HOURS\.\d+\.CONDITION_NAME"/>
220+
<xs:pattern value="WEATHER.HOURS\.\d+\.IS_DAY"/>
221+
<xs:pattern value="WEATHER.HOURS\.\d+\.TEMPERATURE"/>
222+
<xs:pattern value="WEATHER.HOURS\.\d+\.UV_INDEX"/>
223+
<xs:pattern value="WEATHER.DAYS\.\d+\.IS_AVAILABLE"/>
224+
<xs:pattern value="WEATHER.DAYS\.\d+\.CONDITION_DAY"/>
225+
<xs:pattern value="WEATHER.DAYS\.\d+\.CONDITION_DAY_NAME"/>
226+
<xs:pattern value="WEATHER.DAYS\.\d+\.CONDITION_NIGHT"/>
227+
<xs:pattern value="WEATHER.DAYS\.\d+\.CONDITION_NIGHT_NAME"/>
228+
<xs:pattern value="WEATHER.DAYS\.\d+\.TEMPERATURE_LOW"/>
229+
<xs:pattern value="WEATHER.DAYS\.\d+\.TEMPERATURE_HIGH"/>
230+
<xs:pattern value="WEATHER.DAYS\.\d+\.CHANCE_OF_PRECIPITATION"/>
231+
<xs:pattern value="WEATHER.DAYS\.\d+\.CHANCE_OF_PRECIPITATION_NIGHT"/>
232+
<xs:pattern value="WEATHER.DAYS\.\d+\.UV_INDEX"/>
233+
</xs:restriction>
234+
</xs:simpleType>
235+
236+
<xs:simpleType name="weatherSourceType">
237+
<xs:annotation>
238+
<xs:documentation>
239+
Sources related to weather
240+
</xs:documentation>
241+
</xs:annotation>
242+
<xs:union memberTypes="_weatherSourceEnums _weatherSourcePatterns"/>
243+
</xs:simpleType>
198244
<xs:simpleType name="sourceType">
199245
<xs:union
200246
memberTypes="timeSourceType languageSourceType batterySourceType moonPhaseSourceType
201-
sensorSourceType healthSourceType notificationSourceType miscSourceType"/>
247+
sensorSourceType healthSourceType notificationSourceType weatherSourceType"/>
202248
</xs:simpleType>
203249
</xs:schema>

0 commit comments

Comments
 (0)