polyapi-python 0.2.6.dev2__py3-none-any.whl → 0.2.7.dev0__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.
- polyapi/schema.py +0 -14
- {polyapi_python-0.2.6.dev2.dist-info → polyapi_python-0.2.7.dev0.dist-info}/METADATA +1 -1
- {polyapi_python-0.2.6.dev2.dist-info → polyapi_python-0.2.7.dev0.dist-info}/RECORD +6 -6
- {polyapi_python-0.2.6.dev2.dist-info → polyapi_python-0.2.7.dev0.dist-info}/WHEEL +1 -1
- {polyapi_python-0.2.6.dev2.dist-info → polyapi_python-0.2.7.dev0.dist-info}/LICENSE +0 -0
- {polyapi_python-0.2.6.dev2.dist-info → polyapi_python-0.2.7.dev0.dist-info}/top_level.txt +0 -0
polyapi/schema.py
CHANGED
|
@@ -77,20 +77,6 @@ def generate_schema_types(input_data: Dict, root=None):
|
|
|
77
77
|
with open(tmp_output) as f:
|
|
78
78
|
output = f.read()
|
|
79
79
|
|
|
80
|
-
output = _fix_title(input_data, output)
|
|
81
|
-
return output
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
def _fix_title(input_data, output) -> str:
|
|
85
|
-
""" the jsonschema_gentypes library changes all titles to Pascalcase
|
|
86
|
-
this function changes them back
|
|
87
|
-
TODO fix bug in gentypes so this step is not necessary
|
|
88
|
-
"""
|
|
89
|
-
for k, v in input_data.items():
|
|
90
|
-
if isinstance(v, dict):
|
|
91
|
-
output = _fix_title(v, output)
|
|
92
|
-
elif k == "title":
|
|
93
|
-
output = output.replace(f"class {v.title()}", f"class {v}")
|
|
94
80
|
return output
|
|
95
81
|
|
|
96
82
|
|
|
@@ -13,14 +13,14 @@ polyapi/function_cli.py,sha256=NE8CT1E22PC5DorVWJefXsBBGUnpSIsUyhHla02SV4k,9193
|
|
|
13
13
|
polyapi/generate.py,sha256=LN2Z6fE-HfpMsXlkJfOl8bqZdR3fUythE_ZsAe15tmk,8012
|
|
14
14
|
polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
polyapi/rendered_spec.py,sha256=uaNzBhP4cX7iGfKwzZv0dxMagWzsGeDr0cQYx_AyIhQ,2153
|
|
16
|
-
polyapi/schema.py,sha256=
|
|
16
|
+
polyapi/schema.py,sha256=VVMHAT5yU47cRC7xF44BrmUSemlk5oIKSxH2HTVPaQ8,3169
|
|
17
17
|
polyapi/server.py,sha256=n-nMGjXoq9T9ZwE2EBDkAaxJ7UytConGaHthkjbkCXA,1894
|
|
18
18
|
polyapi/typedefs.py,sha256=mRqwd2LKofxNn_VSKxBzixni2j-tai8mfTQ0Wi2aLNM,1487
|
|
19
19
|
polyapi/utils.py,sha256=JtL_v0PVkJBlTeRu0gIV5IDScqoiggS8m-VcS4HN22c,6890
|
|
20
20
|
polyapi/variables.py,sha256=d36-trnfTL_8m2NkorMiImb4O3UrJbiFV38CHxV5i0A,4200
|
|
21
21
|
polyapi/webhook.py,sha256=LWv28c2MLz_OKBI_Nn7WR4C-gs1SWgbdXsoxIIf-9UI,4886
|
|
22
|
-
polyapi_python-0.2.
|
|
23
|
-
polyapi_python-0.2.
|
|
24
|
-
polyapi_python-0.2.
|
|
25
|
-
polyapi_python-0.2.
|
|
26
|
-
polyapi_python-0.2.
|
|
22
|
+
polyapi_python-0.2.7.dev0.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
|
|
23
|
+
polyapi_python-0.2.7.dev0.dist-info/METADATA,sha256=c3GVRE1pr450qHhFlLGBCspXxps3NdbN3ExVTDYqQOk,4867
|
|
24
|
+
polyapi_python-0.2.7.dev0.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
|
25
|
+
polyapi_python-0.2.7.dev0.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
|
|
26
|
+
polyapi_python-0.2.7.dev0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|