@@ -17,11 +17,11 @@ def validator(
17
17
inbound_schema : Optional [Dict ] = None ,
18
18
inbound_formats : Optional [Dict ] = None ,
19
19
inbound_handlers : Optional [Dict ] = None ,
20
- inbound_provider_options : Dict = {} ,
20
+ inbound_provider_options : Optional [ Dict ] = None ,
21
21
outbound_schema : Optional [Dict ] = None ,
22
22
outbound_formats : Optional [Dict ] = None ,
23
23
outbound_handlers : Optional [Dict ] = None ,
24
- outbound_provider_options : Dict = {} ,
24
+ outbound_provider_options : Optional [ Dict ] = None ,
25
25
envelope : str = "" ,
26
26
jmespath_options : Optional [Dict ] = None ,
27
27
** kwargs : Any ,
@@ -144,7 +144,7 @@ def handler(event, context):
144
144
schema = inbound_schema ,
145
145
formats = inbound_formats ,
146
146
handlers = inbound_handlers ,
147
- ** inbound_provider_options ,
147
+ provider_options = inbound_provider_options ,
148
148
)
149
149
150
150
response = handler (event , context , ** kwargs )
@@ -156,7 +156,7 @@ def handler(event, context):
156
156
schema = outbound_schema ,
157
157
formats = outbound_formats ,
158
158
handlers = outbound_handlers ,
159
- ** outbound_provider_options ,
159
+ provider_options = outbound_provider_options ,
160
160
)
161
161
162
162
return response
@@ -167,7 +167,7 @@ def validate(
167
167
schema : Dict ,
168
168
formats : Optional [Dict ] = None ,
169
169
handlers : Optional [Dict ] = None ,
170
- provider_options : Dict = {} ,
170
+ provider_options : Optional [ Dict ] = None ,
171
171
envelope : Optional [str ] = None ,
172
172
jmespath_options : Optional [Dict ] = None ,
173
173
):
@@ -259,4 +259,6 @@ def handler(event, context):
259
259
jmespath_options = jmespath_options ,
260
260
)
261
261
262
- validate_data_against_schema (data = event , schema = schema , formats = formats , handlers = handlers , ** provider_options )
262
+ validate_data_against_schema (
263
+ data = event , schema = schema , formats = formats , handlers = handlers , provider_options = provider_options
264
+ )
0 commit comments