Skip to content

Commit

Permalink
fix: Pydantic 2 being more strict about type validation
Browse files Browse the repository at this point in the history
With Pydantic v2, strict type validation is enforced. The type field is expected
to have the exact value "POST" as a literal.
  • Loading branch information
Antonyjin committed Nov 5, 2024
1 parent 624438b commit c5788ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_post.json
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{"hello": "world"}
{
"type": "POST",
"hello": "world"
}

0 comments on commit c5788ec

Please sign in to comment.