polyapi-python 0.0.23__tar.gz → 0.0.24__tar.gz
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-python-0.0.23 → polyapi-python-0.0.24}/PKG-INFO +1 -1
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/api.py +4 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi_python.egg-info/PKG-INFO +1 -1
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/pyproject.toml +1 -1
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/LICENSE +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/README.md +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/__init__.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/__main__.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/cli.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/config.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/constants.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/exceptions.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/function_cli.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/generate.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/py.typed +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/schema.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/typedefs.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/utils.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi/variables.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi_python.egg-info/SOURCES.txt +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi_python.egg-info/dependency_links.txt +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi_python.egg-info/requires.txt +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi_python.egg-info/top_level.txt +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/setup.cfg +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/tests/test_function_cli.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/tests/test_generate.py +0 -0
- {polyapi-python-0.0.23 → polyapi-python-0.0.24}/tests/test_utils.py +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from typing import Any, Dict, List, Tuple
|
|
3
|
+
|
|
3
4
|
from polyapi.constants import JSONSCHEMA_TO_PYTHON_TYPE_MAP
|
|
4
5
|
from polyapi.typedefs import PropertySpecification, PropertyType
|
|
5
6
|
from polyapi.utils import append_init, camelCase
|
|
@@ -104,6 +105,9 @@ def _get_type(type_spec: PropertyType) -> Tuple[str, str]:
|
|
|
104
105
|
|
|
105
106
|
title = title.rsplit("/", 1)[-1]
|
|
106
107
|
title = clean_title(title)
|
|
108
|
+
if not title:
|
|
109
|
+
return "List", ""
|
|
110
|
+
|
|
107
111
|
title = f'List[{title}]'
|
|
108
112
|
return title, generate_schema_types(schema, root=title)
|
|
109
113
|
else:
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
|
|
|
3
3
|
|
|
4
4
|
[project]
|
|
5
5
|
name = "polyapi-python"
|
|
6
|
-
version = "0.0.
|
|
6
|
+
version = "0.0.24"
|
|
7
7
|
description = "The PolyAPI Python Client"
|
|
8
8
|
authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
|
|
9
9
|
dependencies = ["requests", "typing_extensions", "jsonschema-gentypes", "pydantic>=2.5.3", "stdlib_list"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyapi-python-0.0.23 → polyapi-python-0.0.24}/polyapi_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|