Files
pydantic/tests
Ezequiel Lara Gomez 2ac10affe5 Allow ellipsis on Fields inside Annotated (#3133)
* Allow ellipsis on Fields within annotated types

The usecase is TypedDicts, which can't have default values otherwise.
Meaning that adding Optionals to Annotated drops them from the list of
required fields, which the patch fixes.

* Add test for TypedDict required optionals

Clarifies what's required with TypedDicts schemas.

* Add description of changes

* PR feedback

* extra tests as requested

Co-authored-by: Samuel Colvin <s@muelcolvin.com>
2022-08-04 14:21:05 +00:00
..
2017-05-03 22:23:41 +01:00
2020-03-21 18:14:17 +00:00
2019-06-21 12:32:03 +01:00
2022-01-02 13:53:45 +00:00
2022-07-06 08:52:01 +02:00
2022-07-06 08:52:01 +02:00
2022-07-06 08:52:01 +02:00
2021-12-18 20:56:14 +00:00
2022-07-06 08:52:01 +02:00