Allow support for exclusion/inclusion of none and unset fields in OpenAPI schema
Summary
This PR addresses the issue #5559. Currently, the OpenAPI schema returned by get_openapi excludes none fields by default, and there are no parameters to customize this. The fix allows user to specify the exclusion/inclusion of none or unset fields when initializing FastAPI().
📝 Docs preview for commit bc42942cab9c95fa98669f30d74b357a4d5f2ebf at: https://63829f79adf1a077f4910f7c--fastapi.netlify.app
📝 Docs preview for commit 53c5b4cda1724521600ba25ea5468012974e390a at: https://638365e8adf1a0751591140e--fastapi.netlify.app
📝 Docs preview for commit b1f758153864f70b11cfdca7e15a10ac4b79e223 at: https://6383987b8f98a10b42c6c25f--fastapi.netlify.app
📝 Docs preview for commit 35320a8ab25486f6f46dca09ae927eab5366736a at: https://639ce6c6a7c2ed05d88a98ed--fastapi.netlify.app