Skip to content

Commit afeeb2b

Browse files
authored
Fix update_client script (#8)
1 parent 1ef685b commit afeeb2b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

fishjam/_openapi_client/models/peer_options_web_rtc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class PeerOptionsWebRTC:
1919
enable_simulcast: Union[Unset, bool] = True
2020
"""Enables the peer to use simulcast"""
2121
metadata: Union[Unset, "PeerOptionsWebRTCMetadata"] = UNSET
22-
""""""
22+
"""Custom peer metadata"""
2323
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
2424
"""@private"""
2525

fishjam/_openapi_client/models/peer_options_web_rtc_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@_attrs_define
1010
class PeerOptionsWebRTCMetadata:
11-
""" """
11+
"""Custom peer metadata"""
1212

1313
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
1414
"""@private"""

poetry_scripts.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ def generate_docs():
7878

7979

8080
def update_client():
81+
if len(sys.argv) < 2:
82+
raise RuntimeError("Missing fishjam openapi.yaml raw url positional argument")
83+
8184
check_exit_code(
82-
"openapi-python-client update\
83-
--url https://raw.githubusercontent.com/fishjam-cloud/"
84-
"fishjam/main/openapi.yaml \
85+
f"openapi-python-client update \
86+
--url {sys.argv[1]} \
8587
--config openapi-python-client-config.yaml \
8688
--custom-template-path=templates/openapi"
8789
)

0 commit comments

Comments
 (0)