Skip to content
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
12 changes: 1 addition & 11 deletions openapi_core/validation/request/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import warnings
from dataclasses import dataclass
from typing import Iterable

Expand All @@ -10,16 +9,7 @@
@dataclass
class ParametersError(Exception):
parameters: Parameters
errors: Iterable[Exception]

@property
def context(self) -> Iterable[Exception]:
warnings.warn(
"context property of ParametersError is deprecated. "
"Use erros instead.",
DeprecationWarning,
)
return self.errors
context: Iterable[Exception]


class OpenAPIRequestBodyError(OpenAPIError):
Expand Down
2 changes: 1 addition & 1 deletion openapi_core/validation/request/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _get_parameters(
location[param_name] = value

if errors:
raise ParametersError(errors=errors, parameters=parameters)
raise ParametersError(context=errors, parameters=parameters)

return parameters

Expand Down