Skip to content

Commit

Permalink
Fix for numbers in JSONSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Apr 14, 2023
1 parent f1e09fd commit 237acaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mashumaro/jsonschema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class Config(BaseConfig):
"definitions": "$defs",
}
serialization_strategy = {
Number: pass_through,
int: pass_through,
float: pass_through,
Null: pass_through,
}

Expand Down

0 comments on commit 237acaa

Please sign in to comment.