Add warning about force_all to AsyncParser
@@ -4,11 +4,13 @@ import asyncio
import collections
import functools
import inspect
+import warnings
import marshmallow as ma
from marshmallow.utils import missing
from webargs import core
+from webargs.core import RemovedInWebargs5Warning
class AsyncParser(core.Parser):
@@ -89,6 +91,11 @@ class AsyncParser(core.Parser):
finally:
self.clear_cache()
if force_all:
+ warnings.warn(
+ "Missing arguments will no longer be added to the parsed arguments "
+ "dictionary in version 5.0.0. Pass force_all=False for the new behavior.",
+ RemovedInWebargs5Warning,
+ )
core.fill_in_missing_args(data, schema)
return data
