Skip to content

Commit 996bd40

Browse files
committed
update openapi-python-client version
1 parent 7d394d7 commit 996bd40

File tree

98 files changed

+1020
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+1020
-885
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ get_version: ## Get the version from openapi.json and save to openapi_specifica
4747
generate: clear_log get_version ## Generate API client from OpenAPI spec
4848
@echo "Generating API client..."
4949
openapi-python-client --version > logs/log 2>&1
50-
openapi-python-client generate --path $(OPENAPI_SPEC) --config config.yaml >> logs/log 2>&1
50+
openapi-python-client generate --path $(OPENAPI_SPEC) --overwrite --custom-template-path=templates --config config.yaml >> logs/log 2>&1
5151

5252
# A shortcut to install dependencies and then generate the client
5353
all: install install_jq generate ## Install dependencies and generate client

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project_name_override: nadag-innmelding-python-client
22
package_name_override: nadag_innmelding_python_client
3-
# package_version_override:
3+
package_version_override: 1.0-rc.1
44
post_hooks:
55
# - "bash -c 'cd field-manager-python-client && poetry install'"

logs/log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
openapi-python-client version: 0.21.6
1+
openapi-python-client version: 0.24.3
22
Generating /home/jiyang/github/ngi/nadag-python-client/nadag-innmelding-python-client
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Contains endpoint functions for accessing the API"""

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/delete_v_1_geoteknisk_unders_geoteknisk_unders_id.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Dict, Optional, Union
2+
from typing import Any, Optional, Union
33

44
import httpx
55

@@ -10,8 +10,8 @@
1010

1111
def _get_kwargs(
1212
geoteknisk_unders_id: str,
13-
) -> Dict[str, Any]:
14-
_kwargs: Dict[str, Any] = {
13+
) -> dict[str, Any]:
14+
_kwargs: dict[str, Any] = {
1515
"method": "delete",
1616
"url": f"/v1/GeotekniskUnders/{geoteknisk_unders_id}",
1717
}

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/delete_v_1_geoteknisk_unders_geoteknisk_unders_id_geoteknisk_borehull_geoteknisk_borehull_id.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Dict, Optional, Union
2+
from typing import Any, Optional, Union
33

44
import httpx
55

@@ -11,8 +11,8 @@
1111
def _get_kwargs(
1212
geoteknisk_unders_id: str,
1313
geoteknisk_borehull_id: str,
14-
) -> Dict[str, Any]:
15-
_kwargs: Dict[str, Any] = {
14+
) -> dict[str, Any]:
15+
_kwargs: dict[str, Any] = {
1616
"method": "delete",
1717
"url": f"/v1/GeotekniskUnders/{geoteknisk_unders_id}/GeotekniskBorehull/{geoteknisk_borehull_id}",
1818
}

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/get_v_1_geoteknisk_unders.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Dict, Optional, Union
2+
from typing import Any, Optional, Union
33

44
import httpx
55

@@ -13,16 +13,16 @@ def _get_kwargs(
1313
*,
1414
ekstern_id: str,
1515
ekstern_navnerom: str,
16-
) -> Dict[str, Any]:
17-
params: Dict[str, Any] = {}
16+
) -> dict[str, Any]:
17+
params: dict[str, Any] = {}
1818

1919
params["eksternId"] = ekstern_id
2020

2121
params["eksternNavnerom"] = ekstern_navnerom
2222

2323
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
2424

25-
_kwargs: Dict[str, Any] = {
25+
_kwargs: dict[str, Any] = {
2626
"method": "get",
2727
"url": "/v1/GeotekniskUnders",
2828
"params": params,

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/get_v_1_geoteknisk_unders_geoteknisk_unders_id.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Dict, Optional, Union, cast
2+
from typing import Any, Optional, Union, cast
33

44
import httpx
55

@@ -11,8 +11,8 @@
1111

1212
def _get_kwargs(
1313
geoteknisk_unders_id: str,
14-
) -> Dict[str, Any]:
15-
_kwargs: Dict[str, Any] = {
14+
) -> dict[str, Any]:
15+
_kwargs: dict[str, Any] = {
1616
"method": "get",
1717
"url": f"/v1/GeotekniskUnders/{geoteknisk_unders_id}",
1818
}

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/post_v_1_geoteknisk_unders.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Dict, Optional, Union, cast
2+
from typing import Any, Optional, Union, cast
33

44
import httpx
55

@@ -15,17 +15,17 @@ def _get_kwargs(
1515
*,
1616
body: GeotekniskUnders,
1717
epsg_code: EpsgCode,
18-
) -> Dict[str, Any]:
19-
headers: Dict[str, Any] = {}
18+
) -> dict[str, Any]:
19+
headers: dict[str, Any] = {}
2020

21-
params: Dict[str, Any] = {}
21+
params: dict[str, Any] = {}
2222

2323
json_epsg_code = epsg_code.value
2424
params["epsgCode"] = json_epsg_code
2525

2626
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
2727

28-
_kwargs: Dict[str, Any] = {
28+
_kwargs: dict[str, Any] = {
2929
"method": "post",
3030
"url": "/v1/GeotekniskUnders",
3131
"params": params,

nadag-innmelding-python-client/nadag_innmelding_python_client/api/default/post_v_1_geoteknisk_unders_geoteknisk_unders_id_geoteknisk_borehull.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from http import HTTPStatus
2-
from typing import Any, Dict, Optional, Union
2+
from typing import Any, Optional, Union
33

44
import httpx
55

@@ -14,10 +14,10 @@ def _get_kwargs(
1414
geoteknisk_unders_id: str,
1515
*,
1616
body: GeotekniskBorehull,
17-
) -> Dict[str, Any]:
18-
headers: Dict[str, Any] = {}
17+
) -> dict[str, Any]:
18+
headers: dict[str, Any] = {}
1919

20-
_kwargs: Dict[str, Any] = {
20+
_kwargs: dict[str, Any] = {
2121
"method": "post",
2222
"url": f"/v1/GeotekniskUnders/{geoteknisk_unders_id}/GeotekniskBorehull",
2323
}

0 commit comments

Comments
 (0)