We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765108c commit d58e83dCopy full SHA for d58e83d
ellar/core/params/args.py
@@ -224,6 +224,16 @@ def compute_route_parameter_list(
224
self._computation_models[websocket_inject.in_].append(websocket_inject)
225
continue
226
227
+ if (
228
+ param_name == ("context", "ctx")
229
+ and param.default == inspect.Parameter.empty
230
+ ):
231
+ context_inject = ParameterInjectable()(
232
+ param_name, t.cast(t.Type, IExecutionContext)
233
+ )
234
+ self._computation_models[context_inject.in_].append(context_inject)
235
+ continue
236
+
237
if self._add_non_field_param_to_dependency(
238
param_name=param.name,
239
param_default=param.default,
0 commit comments