From c5788ec3801bf42d081c90a9d02e42e4e100f9ab Mon Sep 17 00:00:00 2001 From: Antonyjin Date: Tue, 5 Nov 2024 23:33:25 +0900 Subject: [PATCH] fix: Pydantic 2 being more strict about type validation With Pydantic v2, strict type validation is enforced. The type field is expected to have the exact value "POST" as a literal. --- tests/test_post.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_post.json b/tests/test_post.json index 58de8274..19a25683 100644 --- a/tests/test_post.json +++ b/tests/test_post.json @@ -1 +1,4 @@ -{"hello": "world"} \ No newline at end of file +{ + "type": "POST", + "hello": "world" +}