Closed greyli closed 3 months ago
examples/test_examples.py: 12 warnings
/home/greyli/apiflask/venv/lib/python3.10/site-packages/marshmallow_dataclass/__init__.py:862: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'example': 'Medor', 'description': 'This will be printed in the generated doc. The "example" value "Medor" will be fed into the "try it"/"Send API request".'}
return field(**metadata)
This warning is coming from marshmellow-dataclass
Thanks for working on this issue!
To fix the warning from marshmallow_dataclass, you will need to move this description
field to a nested metadata
field.
And there are some warnings from openapi_spec_validator
, please handle them as well:
/home/runner/work/apiflask/apiflask/.tox/py312/lib/python3.12/site-packages/openapi_spec_validator/shortcuts.py:66: DeprecationWarning: validate_spec shortcut is deprecated. Use validate instead.
warnings.warn(