File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
openapi_core/validation/request Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 1- import warnings
21from dataclasses import dataclass
32from typing import Iterable
43
109@dataclass
1110class ParametersError (Exception ):
1211 parameters : Parameters
13- errors : Iterable [Exception ]
14-
15- @property
16- def context (self ) -> Iterable [Exception ]:
17- warnings .warn (
18- "context property of ParametersError is deprecated. "
19- "Use erros instead." ,
20- DeprecationWarning ,
21- )
22- return self .errors
12+ context : Iterable [Exception ]
2313
2414
2515class OpenAPIRequestBodyError (OpenAPIError ):
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def _get_parameters(
119119 location [param_name ] = value
120120
121121 if errors :
122- raise ParametersError (errors = errors , parameters = parameters )
122+ raise ParametersError (context = errors , parameters = parameters )
123123
124124 return parameters
125125
You can’t perform that action at this time.
0 commit comments