jararaca 0.3.12a0__py3-none-any.whl → 0.3.12a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jararaca might be problematic. Click here for more details.
- jararaca/tools/typescript/interface_parser.py +12 -1
- {jararaca-0.3.12a0.dist-info → jararaca-0.3.12a1.dist-info}/METADATA +1 -1
- {jararaca-0.3.12a0.dist-info → jararaca-0.3.12a1.dist-info}/RECORD +7 -7
- pyproject.toml +1 -1
- {jararaca-0.3.12a0.dist-info → jararaca-0.3.12a1.dist-info}/LICENSE +0 -0
- {jararaca-0.3.12a0.dist-info → jararaca-0.3.12a1.dist-info}/WHEEL +0 -0
- {jararaca-0.3.12a0.dist-info → jararaca-0.3.12a1.dist-info}/entry_points.txt +0 -0
|
@@ -406,6 +406,7 @@ export type ResponseType =
|
|
|
406
406
|
export interface HttpBackendRequest {
|
|
407
407
|
method: string;
|
|
408
408
|
path: string;
|
|
409
|
+
pathParams: { [key: string]: string };
|
|
409
410
|
headers: { [key: string]: string };
|
|
410
411
|
query: { [key: string]: unknown };
|
|
411
412
|
body: unknown;
|
|
@@ -543,6 +544,16 @@ def write_rest_controller_to_typescript_interface(
|
|
|
543
544
|
)
|
|
544
545
|
class_buffer.write(f"\t\t\tpath: `/{final_path}`,\n")
|
|
545
546
|
|
|
547
|
+
# Sort path params
|
|
548
|
+
path_params = sorted(
|
|
549
|
+
[param for param in arg_params_spec if param.type_ == "path"],
|
|
550
|
+
key=lambda x: x.name,
|
|
551
|
+
)
|
|
552
|
+
class_buffer.write("\t\t\tpathParams: {\n")
|
|
553
|
+
for param in path_params:
|
|
554
|
+
class_buffer.write(f'\t\t\t\t"{param.name}": {param.name},\n')
|
|
555
|
+
class_buffer.write("\t\t\t},\n")
|
|
556
|
+
|
|
546
557
|
# Sort headers
|
|
547
558
|
header_params = sorted(
|
|
548
559
|
[param for param in arg_params_spec if param.type_ == "header"],
|
|
@@ -593,7 +604,7 @@ class HttpParemeterSpec:
|
|
|
593
604
|
|
|
594
605
|
def parse_path_with_params(path: str, parameters: list[HttpParemeterSpec]) -> str:
|
|
595
606
|
for parameter in parameters:
|
|
596
|
-
path = path.replace(f"{{{parameter.name}}}", f"
|
|
607
|
+
path = path.replace(f"{{{parameter.name}}}", f":{parameter.name}")
|
|
597
608
|
return path
|
|
598
609
|
|
|
599
610
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
2
2
|
README.md,sha256=2qMM__t_MoLKZr4IY9tXjo-Jn6LKjuHMb1qbyXpgL08,3401
|
|
3
|
-
pyproject.toml,sha256=
|
|
3
|
+
pyproject.toml,sha256=pegG6HUFXIUVHdfGGruJu_hqjwWTYYSSsRar1mjbmqw,2040
|
|
4
4
|
jararaca/__init__.py,sha256=EdOPigKYraoG7I-Hl9V3XteqrbhdBS3xy1rUakh58lc,17949
|
|
5
5
|
jararaca/__main__.py,sha256=-O3vsB5lHdqNFjUtoELDF81IYFtR-DSiiFMzRaiSsv4,67
|
|
6
6
|
jararaca/broker_backend/__init__.py,sha256=GzEIuHR1xzgCJD4FE3harNjoaYzxHMHoEL0_clUaC-k,3528
|
|
@@ -66,12 +66,12 @@ jararaca/scheduler/types.py,sha256=4HEQOmVIDp-BYLSzqmqSFIio1bd51WFmgFPIzPpVu04,1
|
|
|
66
66
|
jararaca/tools/app_config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
jararaca/tools/app_config/decorators.py,sha256=-ckkMZ1dswOmECdo1rFrZ15UAku--txaNXMp8fd1Ndk,941
|
|
68
68
|
jararaca/tools/app_config/interceptor.py,sha256=HV8h4AxqUc_ACs5do4BSVlyxlRXzx7HqJtoVO9tfRnQ,2611
|
|
69
|
-
jararaca/tools/typescript/interface_parser.py,sha256=
|
|
69
|
+
jararaca/tools/typescript/interface_parser.py,sha256=rM2t_6iAC2u75vBvTmZYy-JS14w36s4PKmaaGZzRYw4,30944
|
|
70
70
|
jararaca/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
71
71
|
jararaca/utils/rabbitmq_utils.py,sha256=ytdAFUyv-OBkaVnxezuJaJoLrmN7giZgtKeet_IsMBs,10918
|
|
72
72
|
jararaca/utils/retry.py,sha256=DzPX_fXUvTqej6BQ8Mt2dvLo9nNlTBm7Kx2pFZ26P2Q,4668
|
|
73
|
-
jararaca-0.3.
|
|
74
|
-
jararaca-0.3.
|
|
75
|
-
jararaca-0.3.
|
|
76
|
-
jararaca-0.3.
|
|
77
|
-
jararaca-0.3.
|
|
73
|
+
jararaca-0.3.12a1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
74
|
+
jararaca-0.3.12a1.dist-info/METADATA,sha256=vwoe5SBCrXlu3jg5CE_pBXADBbTnKipjeLBAN7S71DI,4995
|
|
75
|
+
jararaca-0.3.12a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
76
|
+
jararaca-0.3.12a1.dist-info/entry_points.txt,sha256=WIh3aIvz8LwUJZIDfs4EeH3VoFyCGEk7cWJurW38q0I,45
|
|
77
|
+
jararaca-0.3.12a1.dist-info/RECORD,,
|
pyproject.toml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|