Skip to content

Commit 8fa1aac

Browse files
committed
Update formatting for soundness and disable format checks
1 parent 85f163a commit 8fa1aac

4 files changed

Lines changed: 82 additions & 76 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
name: Soundness
2020
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
2121
with:
22-
api_breakage_check_enabled: false # this repo doesn't vend any API
23-
license_header_check_enabled: false # feature: https://github.com/swiftlang/github-workflows/issues/78
24-
license_header_check_project_name: "Swift.org" # bug: https://github.com/swiftlang/github-workflows/issues/76
22+
format_check_enabled: false # aspire to true
2523

2624
build-examples:
2725
strategy:
@@ -246,4 +244,3 @@ jobs:
246244
name: apks-${{ matrix.os }}-${{ matrix.swift_version }}-${{ matrix.ndk_version }}
247245
path: '**/build/outputs/apk/**/*.apk'
248246
if-no-files-found: warn
249-

.spi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1
2+
external_links:
3+
documentation: "https://docs.swift.org/android/documentation/android"
4+
builder:
5+
configs:
6+
- documentation_targets: [SwiftAndroid]
7+

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import PackageDescription
44

5+
// Note that this product exists purely to build documentation:
6+
// swift package generate-documentation --target SwiftAndroid --transform-for-static-hosting --output-path dos
57
let package = Package(
68
name: "swift-android-examples",
79
products: [

swift-java-weather-app/weather-lib/Sources/WeatherLibrary/openapi.yaml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -17,78 +17,78 @@ paths:
1717
- url: https://api.open-meteo.com
1818
get:
1919
tags:
20-
- Weather Forecast APIs
20+
- Weather Forecast APIs
2121
summary: 7 day weather forecast for coordinates
2222
description: 7 day weather variables in hourly and daily resolution for given WGS84 latitude and longitude coordinates. Available worldwide.
2323
parameters:
24-
- name: hourly
25-
in: query
26-
explode: false
27-
schema:
28-
type: array
29-
items:
30-
type: string
31-
enum:
32-
- temperature_2m
33-
- relative_humidity_2m
34-
- dew_point_2m
35-
- apparent_temperature
36-
- pressure_msl
37-
- cloud_cover
38-
- cloud_cover_low
39-
- cloud_cover_mid
40-
- cloud_cover_high
41-
- wind_speed_10m
42-
- wind_speed_80m
43-
- wind_speed_120m
44-
- wind_speed_180m
45-
- wind_direction_10m
46-
- wind_direction_80m
47-
- wind_direction_120m
48-
- wind_direction_180m
49-
- wind_gusts_10m
50-
- shortwave_radiation
51-
- direct_radiation
52-
- direct_normal_irradiance
53-
- diffuse_radiation
54-
- vapour_pressure_deficit
55-
- evapotranspiration
56-
- precipitation
57-
- weather_code
58-
- snow_height
59-
- freezing_level_height
60-
- soil_temperature_0cm
61-
- soil_temperature_6cm
62-
- soil_temperature_18cm
63-
- soil_temperature_54cm
64-
- soil_moisture_0_1cm
65-
- soil_moisture_1_3cm
66-
- soil_moisture_3_9cm
67-
- soil_moisture_9_27cm
68-
- soil_moisture_27_81cm
24+
- name: hourly
25+
in: query
26+
explode: false
27+
schema:
28+
type: array
29+
items:
30+
type: string
31+
enum:
32+
- temperature_2m
33+
- relative_humidity_2m
34+
- dew_point_2m
35+
- apparent_temperature
36+
- pressure_msl
37+
- cloud_cover
38+
- cloud_cover_low
39+
- cloud_cover_mid
40+
- cloud_cover_high
41+
- wind_speed_10m
42+
- wind_speed_80m
43+
- wind_speed_120m
44+
- wind_speed_180m
45+
- wind_direction_10m
46+
- wind_direction_80m
47+
- wind_direction_120m
48+
- wind_direction_180m
49+
- wind_gusts_10m
50+
- shortwave_radiation
51+
- direct_radiation
52+
- direct_normal_irradiance
53+
- diffuse_radiation
54+
- vapour_pressure_deficit
55+
- evapotranspiration
56+
- precipitation
57+
- weather_code
58+
- snow_height
59+
- freezing_level_height
60+
- soil_temperature_0cm
61+
- soil_temperature_6cm
62+
- soil_temperature_18cm
63+
- soil_temperature_54cm
64+
- soil_moisture_0_1cm
65+
- soil_moisture_1_3cm
66+
- soil_moisture_3_9cm
67+
- soil_moisture_9_27cm
68+
- soil_moisture_27_81cm
6969
- name: daily
7070
in: query
7171
schema:
7272
type: array
7373
items:
7474
type: string
7575
enum:
76-
- temperature_2m_max
77-
- temperature_2m_min
78-
- apparent_temperature_max
79-
- apparent_temperature_min
80-
- precipitation_sum
81-
- precipitation_hours
82-
- weather_code
83-
- sunrise
84-
- sunset
85-
- wind_speed_10m_max
86-
- wind_gusts_10m_max
87-
- wind_direction_10m_dominant
88-
- shortwave_radiation_sum
89-
- uv_index_max
90-
- uv_index_clear_sky_max
91-
- et0_fao_evapotranspiration
76+
- temperature_2m_max
77+
- temperature_2m_min
78+
- apparent_temperature_max
79+
- apparent_temperature_min
80+
- precipitation_sum
81+
- precipitation_hours
82+
- weather_code
83+
- sunrise
84+
- sunset
85+
- wind_speed_10m_max
86+
- wind_gusts_10m_max
87+
- wind_direction_10m_dominant
88+
- shortwave_radiation_sum
89+
- uv_index_max
90+
- uv_index_clear_sky_max
91+
- et0_fao_evapotranspiration
9292
- name: latitude
9393
in: query
9494
required: true
@@ -113,27 +113,27 @@ paths:
113113
type: string
114114
default: celsius
115115
enum:
116-
- celsius
117-
- fahrenheit
116+
- celsius
117+
- fahrenheit
118118
- name: wind_speed_unit
119119
in: query
120120
schema:
121121
type: string
122122
default: kmh
123123
enum:
124-
- kmh
125-
- ms
126-
- mph
127-
- kn
124+
- kmh
125+
- ms
126+
- mph
127+
- kn
128128
- name: timeformat
129129
in: query
130130
description: If format `unixtime` is selected, all time values are returned in UNIX epoch time in seconds. Please not that all time is then in GMT+0! For daily values with unix timestamp, please apply `utc_offset_seconds` again to get the correct date.
131131
schema:
132132
type: string
133133
default: iso8601
134134
enum:
135-
- iso8601
136-
- unixtime
135+
- iso8601
136+
- unixtime
137137
- name: timezone
138138
in: query
139139
description: If `timezone` is set, all timestamps are returned as local-time and data is returned starting at 0:00 local-time. Any time zone name from the [time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) is supported.
@@ -145,8 +145,8 @@ paths:
145145
schema:
146146
type: integer
147147
enum:
148-
- 1
149-
- 2
148+
- 1
149+
- 2
150150
responses:
151151
"200":
152152
description: OK

0 commit comments

Comments
 (0)