Support disabling separate input and output schemas#369
Merged
zmievsa merged 1 commit intozmievsa:mainfrom Apr 20, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #369 +/- ##
=======================================
Coverage 99.84% 99.84%
=======================================
Files 72 72
Lines 5708 5708
Branches 362 362
=======================================
Hits 5699 5699
Misses 9 9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Owner
|
@kouk lint and codecov are failing |
zmievsa
reviewed
Apr 20, 2026
dddbcc7 to
5218528
Compare
Contributor
Author
|
@zmievsa this is now ready. |
Owner
|
Released both this and your other PR in the latest bugfix version |
Contributor
Author
|
Thank you @zmievsa . Although I don't see this one in 6.2.1. 6.2.1...main |
Owner
|
My bad. Will double check in an hour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are cases where the validation and serialization schema of a model will be different. In this case the default for FastAPI is to generate an input schema and an output schema. It can be disabled with an option which however is not being passed by Cadwyn down to FastAPI.
https://fastapi.tiangolo.com/how-to/separate-openapi-schemas/#model-for-input
Note that the mere presence of defaults is, contrary to what the fastapi docs say, not sufficient to produce differing schemas, at least since pydantic/pydantic#7275