Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add support for not needing ... as default value in required Query(), Path(), Header(), etc. #4906

Merged
merged 4 commits into from May 13, 2022

Conversation

tiangolo
Copy link
Owner

✨ Add support for not needing ... as default value in required Query(), Path(), Header(), etc.

@codecov
Copy link

codecov bot commented May 13, 2022

Codecov Report

Merging #4906 (3d3f767) into master (31690dd) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #4906   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          531       531           
  Lines        13629     13634    +5     
=========================================
+ Hits         13629     13634    +5     
Impacted Files Coverage Δ
docs_src/body_multiple_params/tutorial001_py310.py 100.00% <ø> (ø)
docs_src/extra_data_types/tutorial001.py 100.00% <ø> (ø)
docs_src/extra_data_types/tutorial001_py310.py 100.00% <ø> (ø)
.../query_params_str_validations/tutorial010_py310.py 100.00% <ø> (ø)
docs_src/request_files/tutorial003.py 100.00% <ø> (ø)
docs_src/request_files/tutorial003_py39.py 100.00% <ø> (ø)
docs_src/request_forms_and_files/tutorial001.py 100.00% <ø> (ø)
docs_src/schema_extra_example/tutorial004.py 100.00% <ø> (ø)
docs_src/schema_extra_example/tutorial004_py310.py 100.00% <ø> (ø)
docs_src/websockets/tutorial002.py 100.00% <ø> (ø)
... and 56 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31690dd...3d3f767. Read the comment docs.

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

📝 Docs preview for commit 3d3f767 at: https://627ee2873f06e22b2da57dec--fastapi.netlify.app

@tiangolo tiangolo merged commit 9262fa8 into master May 13, 2022
@tiangolo tiangolo deleted the not-required-defaults branch May 13, 2022 23:38
JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull request Aug 20, 2022
…y(), Path(), Header(), etc. (tiangolo#4906)

* ✨ Do not require default value in Query(), Path(), Header(), etc

* 📝 Update source examples for docs with default and required values

* ✅ Update tests with new default values and not required Ellipsis

* 📝 Update docs for Query params and update info about default value, required, Ellipsis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant