Skip to content
Draft
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
1 change: 1 addition & 0 deletions lower_bounds_constraints.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ schema==0.7.5
tomli==2.0.0
tomli-w==1.0.0
pygments==2.17.2
pydantic==2.8.1
click-shell==2.1
SecretStorage==3.3.3
2 changes: 2 additions & 0 deletions pulp-glue/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
dependencies = [
"multidict>=6.0.5,<6.8",
"packaging>=22.0,<=26.0", # CalVer
"pydantic>=2.8.1,<2.13",
"requests>=2.24.0,<2.33",
"tomli>=2.0.0,<2.1;python_version<'3.11'",
]
Expand Down Expand Up @@ -53,6 +54,7 @@ files = "src/**/*.py, tests/**/*.py"
mypy_path = ["src"]
namespace_packages = true
explicit_package_bases = true
plugins = ["pydantic.mypy"]

[[tool.mypy.overrides]]
# This section is managed by the cookiecutter templates.
Expand Down
4 changes: 4 additions & 0 deletions pulp-glue/src/pulp_glue/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@ class ValidationError(OpenAPIError):
"""Exception raised for failed client side validation of parameters or request bodies."""


class SchemaError(OpenAPIError):
"""Exception raised for unsurmountable inconsistencies of the openapi schema."""


class UnsafeCallError(OpenAPIError):
"""Exception raised for POST, PUT, PATCH or DELETE calls with `safe_calls_only=True`."""
219 changes: 119 additions & 100 deletions pulp-glue/src/pulp_glue/common/openapi.py

Large diffs are not rendered by default.

Loading
Loading