Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Sep 25, 2024
1 parent 0c33188 commit c29853e
Show file tree
Hide file tree
Showing 4 changed files with 619 additions and 460 deletions.
3 changes: 2 additions & 1 deletion dydantic/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ def _json_schema_to_pydantic_field(

field_kwargs = {
"description": description,
"examples": examples,
}
if examples:
field_kwargs["examples"] = examples
if not is_required:
field_kwargs["default"] = None
default = ... if is_required else None
Expand Down
Loading

0 comments on commit c29853e

Please sign in to comment.