Skip to content

Commit cae230a

Browse files
🐛 Source Openweather: fix longitude parameter in spec (#36876)
Co-authored-by: Marcos Marx <[email protected]> Co-authored-by: marcosmarxm <[email protected]>
1 parent 7ecb1d3 commit cae230a

File tree

8 files changed

+1068
-94
lines changed

8 files changed

+1068
-94
lines changed

airbyte-integrations/connectors/source-openweather/.dockerignore

-6
This file was deleted.

airbyte-integrations/connectors/source-openweather/Dockerfile

-38
This file was deleted.

airbyte-integrations/connectors/source-openweather/metadata.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ data:
1313
enabled: false
1414
connectorSubtype: api
1515
connectorType: source
16+
connectorBuildOptions:
17+
baseImage: docker.io/airbyte/python-connector-base:1.2.0@sha256:c22a9d97464b69d6ef01898edf3f8612dc11614f05a84984451dde195f337db9
1618
definitionId: 561d7787-b45e-4f3b-af58-0163c3ba9d5a
17-
dockerImageTag: 0.2.0
19+
dockerImageTag: 0.2.1
1820
dockerRepository: airbyte/source-openweather
1921
githubIssueLabel: source-openweather
2022
icon: openweather.svg

airbyte-integrations/connectors/source-openweather/poetry.lock

+1,032
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[build-system]
2+
requires = [ "poetry-core>=1.0.0",]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[tool.poetry]
6+
version = "0.2.1"
7+
name = "source-openweather"
8+
description = "Source implementation for Open Weather."
9+
authors = [ "Airbyte <[email protected]>",]
10+
license = "MIT"
11+
readme = "README.md"
12+
documentation = "https://docs.airbyte.com/integrations/sources/orb"
13+
homepage = "https://airbyte.com"
14+
repository = "https://github.com/airbytehq/airbyte"
15+
[[tool.poetry.packages]]
16+
include = "source_openweather"
17+
18+
[tool.poetry.dependencies]
19+
python = "^3.9,<3.12"
20+
airbyte-cdk = "^0.74.0"
21+
22+
[tool.poetry.scripts]
23+
source-openweather = "source_openweather.run:run"
24+
25+
[tool.poetry.group.dev.dependencies]
26+
pytest = "^6.2"
27+
requests-mock = "^1.11.0"
28+
pytest-mock = "^3.6.1"
29+

airbyte-integrations/connectors/source-openweather/setup.py

-47
This file was deleted.

airbyte-integrations/connectors/source-openweather/source_openweather/manifest.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,19 @@ spec:
8787
properties:
8888
lat:
8989
type: string
90-
pattern: "^[-]?\\d{1,2}(\\.\\d+)?$"
90+
pattern: "^(\\+|-)?(?:90(?:(?:\\.0+)?)|(?:[0-9]|[1-8][0-9])(?:(?:\\.[0-9]+)?))$"
9191
description: "Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use our Geocoding API"
9292
examples:
9393
- "45.7603"
9494
- "-21.249107858038816"
9595
lon:
9696
type: string
97-
pattern: "^[-]?\\d{1,2}(\\.\\d+)?$"
97+
pattern: "^(\\+|-)?(?:180(?:(?:\\.0+)?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\\.[0-9]+)?))$"
9898
description: "Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use our Geocoding API"
9999
examples:
100100
- "4.835659"
101101
- "-70.39482074115321"
102+
- "180.000"
102103
appid:
103104
type: string
104105
description: "API KEY"

docs/integrations/sources/openweather.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ The free plan allows 60 calls per minute and 1,000,000 calls per month, you won'
3434

3535
| Version | Date | Pull Request | Subject |
3636
| :--- | :--- | :--- | :--- |
37+
| 0.2.1 | 2024-04-07 | [36876](https://github.com/airbytehq/airbyte/pull/36876) | Fix bug in how lat and lon parameters can be set |
3738
| 0.2.0 | 2023-08-31 | [29983](https://github.com/airbytehq/airbyte/pull/29983) | Migrate to Low Code Framework |
3839
| 0.1.6 | 2022-06-21 | [16136](https://github.com/airbytehq/airbyte/pull/16136) | Update openweather onecall api to 3.0. |
3940
| 0.1.5 | 2022-06-21 | [13864](https://github.com/airbytehq/airbyte/pull/13864) | No changes. Used connector to test publish workflow changes. |

0 commit comments

Comments
 (0)