polyapi-python 0.0.17__py3-none-any.whl → 0.0.18__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/api.py CHANGED
@@ -96,7 +96,10 @@ def _get_type(type_spec: PropertyType) -> Tuple[str, str]:
96
96
  # figure out what it is and fix!
97
97
  return "Any", ""
98
98
 
99
- title = items.get("$ref", "")
99
+ title = items.get("title")
100
+ if not title:
101
+ # title is actually a reference to another schema
102
+ title = items.get("$ref", "")
100
103
  if title:
101
104
  title = title.rsplit("/", 1)[-1].title()
102
105
  title = f'List[{title}]'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.0.17
3
+ Version: 0.0.18
4
4
  Summary: The PolyAPI Python Client
5
5
  Author-email: Dan Fellin <dan@polyapi.io>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  polyapi/__init__.py,sha256=BbXhEtZ3TSGBfAagj62oRxrc5yFNz5fO0FMoGqS-ENQ,366
2
2
  polyapi/__main__.py,sha256=V4zhAh_YGxno5f_KSrlkELxcuDh9bR3WSd0n-2r-qQQ,93
3
- polyapi/api.py,sha256=e3OUZdaKAgqjpE72HUd_6d9vnIhP-h4tymorC0NDj9w,7986
3
+ polyapi/api.py,sha256=GnmtgYdujWcPMnEiblXa5AN2P_OnBeeoywThMW8Zmw4,8133
4
4
  polyapi/cli.py,sha256=Vwu9QnyVwKCMZjZU6J-uO4OsoHdomEJPm59YRh0ADa8,1168
5
5
  polyapi/config.py,sha256=Wzd4YlWndu5lsRIYpeYDUgfAdciirfn2dSXyTyGTJrc,1897
6
6
  polyapi/constants.py,sha256=H3d9vSKUwXKkcY4o28c8sThH63ef4vDn5x8h11PoaCE,373
@@ -12,8 +12,8 @@ polyapi/schema.py,sha256=ION-bNNcKdL5GWNsDKqZFacc2q0ZW_QLSaroS4QEjH0,1881
12
12
  polyapi/typedefs.py,sha256=zh4F36fZSZ6r4YqkcjDjNo_z__kIdiX7fLkC3QniDK0,1082
13
13
  polyapi/utils.py,sha256=5gBNN_kOVD9nkJCnIGiSLZGpIiaARq-ounn3flfNbyk,553
14
14
  polyapi/variables.py,sha256=z1zfR3imJ735G2V89BMOYdzEdXiEHKZ5Q58O4ipWcpk,2897
15
- polyapi_python-0.0.17.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
16
- polyapi_python-0.0.17.dist-info/METADATA,sha256=H_bhQ9-eFq8ZS2lvrm4n6mZ6v5gVol2of3wDpvm4OYc,4069
17
- polyapi_python-0.0.17.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
18
- polyapi_python-0.0.17.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
19
- polyapi_python-0.0.17.dist-info/RECORD,,
15
+ polyapi_python-0.0.18.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
16
+ polyapi_python-0.0.18.dist-info/METADATA,sha256=KCCjVpJhbiZRXY3NGyGAkbR-tSyE-6Dk0UqdDXPnCgc,4069
17
+ polyapi_python-0.0.18.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
18
+ polyapi_python-0.0.18.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
19
+ polyapi_python-0.0.18.dist-info/RECORD,,