Skip to content

Disable client-side validation of responses #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/python-oas-templates
5 changes: 5 additions & 0 deletions pinecone/core/openapi/db_control/model/backup_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -240,6 +243,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -256,6 +260,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
5 changes: 5 additions & 0 deletions pinecone/core/openapi/db_control/model/backup_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def _from_openapi_data(
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -223,6 +224,7 @@ def _from_openapi_data(

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down Expand Up @@ -250,6 +252,7 @@ def _from_openapi_data(
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -316,6 +319,7 @@ def __init__(
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -332,6 +336,7 @@ def __init__(

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
5 changes: 5 additions & 0 deletions pinecone/core/openapi/db_control/model/byoc_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -231,6 +234,7 @@ def __init__(self, environment, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -247,6 +251,7 @@ def __init__(self, environment, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
5 changes: 5 additions & 0 deletions pinecone/core/openapi/db_control/model/collection_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -186,6 +188,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -234,6 +237,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -250,6 +254,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
5 changes: 5 additions & 0 deletions pinecone/core/openapi/db_control/model/collection_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def _from_openapi_data(cls: Type[T], name, status, environment, *args, **kwargs)
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -182,6 +183,7 @@ def _from_openapi_data(cls: Type[T], name, status, environment, *args, **kwargs)

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -206,6 +208,7 @@ def _from_openapi_data(cls: Type[T], name, status, environment, *args, **kwargs)
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -261,6 +264,7 @@ def __init__(self, name, status, environment, *args, **kwargs) -> None: # noqa:
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -277,6 +281,7 @@ def __init__(self, name, status, environment, *args, **kwargs) -> None: # noqa:

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -184,6 +185,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -205,6 +207,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -256,6 +259,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -272,6 +276,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -166,6 +167,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -187,6 +189,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -238,6 +241,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -254,6 +258,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def _from_openapi_data(cls: Type[T], pod, *args, **kwargs) -> T: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -169,6 +170,7 @@ def _from_openapi_data(cls: Type[T], pod, *args, **kwargs) -> T: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], pod, *args, **kwargs) -> T: # noqa: E501
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -241,6 +244,7 @@ def __init__(self, pod, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -257,6 +261,7 @@ def __init__(self, pod, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False)
_enforce_validations = kwargs.pop("_enforce_validations", False)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -162,6 +163,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand All @@ -183,6 +185,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501
required_properties = set(
[
"_enforce_allowed_values",
"_enforce_validations",
"_data_store",
"_check_type",
"_spec_property_naming",
Expand Down Expand Up @@ -232,6 +235,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501
"""

_enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True)
_enforce_validations = kwargs.pop("_enforce_validations", True)
_check_type = kwargs.pop("_check_type", True)
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
_path_to_item = kwargs.pop("_path_to_item", ())
Expand All @@ -248,6 +252,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501

self._data_store = {}
self._enforce_allowed_values = _enforce_allowed_values
self._enforce_validations = _enforce_validations
self._check_type = _check_type
self._spec_property_naming = _spec_property_naming
self._path_to_item = _path_to_item
Expand Down
Loading
Loading