You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OscBot
a334ed9db4
Fix #12419 : Update "Required, can be None" docs and fix example code
The documentation section "Required, can be None" incorrectly claimed that
a query parameter without a default value can accept None. In practice,
query parameters cannot send None via HTTP, and omitting a required
parameter results in a 422 error.
Changes:
- docs: Reword section to "Optional with None", clarify that = None
makes the parameter optional (defaults to None)
- tutorial006c_an_py310.py: Add = None default
- tutorial006c_py310.py: Add default=None to Query()
- test_tutorial006c.py: Remove xfail markers, update expected
required: True → False in OpenAPI schema
4 months ago
..
__init__.py
✅ Add missing tests for code examples (#14569)
7 months ago
tutorial001_py310.py
✨ Add docs and tests for Python 3.9 and Python 3.10 (#3712)
5 years ago
tutorial002_an_py310.py
📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268)
3 years ago
tutorial002_py310.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
4 years ago
tutorial003_an_py310.py
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
2 years ago
tutorial003_py310.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
4 years ago
tutorial004_an_py310.py
👷 Adopt Ruff format (#10517)
3 years ago
tutorial004_py310.py
👷 Adopt Ruff format (#10517)
3 years ago
tutorial005_an_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial005_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial006_an_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial006_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial006c_an_py310.py
Fix #12419: Update "Required, can be None" docs and fix example code
4 months ago
tutorial006c_py310.py
Fix #12419: Update "Required, can be None" docs and fix example code
4 months ago
tutorial007_an_py310.py
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
2 years ago
tutorial007_py310.py
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
2 years ago
tutorial008_an_py310.py
👷 Adopt Ruff format (#10517)
3 years ago
tutorial008_py310.py
👷 Adopt Ruff format (#10517)
3 years ago
tutorial009_an_py310.py
📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268)
3 years ago
tutorial009_py310.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
4 years ago
tutorial010_an_py310.py
👷 Adopt Ruff format (#10517)
3 years ago
tutorial010_py310.py
👷 Adopt Ruff format (#10517)
3 years ago
tutorial011_an_py310.py
📝 Update all docs to use `Annotated` as the main recommendation, with new examples and tests (#9268)
3 years ago
tutorial011_py310.py
✨ Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906)
4 years ago
tutorial012_an_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial012_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial013_an_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial013_py310.py
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
5 months ago
tutorial014_an_py310.py
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
2 years ago
tutorial014_py310.py
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
2 years ago
tutorial015_an_py310.py
🐛 Add docs examples and tests (support) for `Annotated` custom validations, like `AfterValidator`, revert #13440 (#13442)
1 year ago