From 5f0cf832f471a4cc41647dae55ad84850eefb0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 6 Feb 2024 14:26:33 +0900 Subject: [PATCH] update pyantic v2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .vscode/tasks.json | 4 ++-- test/python/test_serialize.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 31a2cb1..bd2305e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,7 +8,7 @@ "command": [ "source .venv/bin/activate;", "python3 tools/build.py;", - "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python-pydantic-v1;", + "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;", "python3 test/python/replace.py;", "python3 -m pip install ./python_generated;" ] @@ -18,7 +18,7 @@ ".venv/Scripts/activate;", "python tools/build.py;", "scoop reset temurin11-jdk;", - "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python-pydantic-v1;", + "java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;", "python test/python/replace.py;", "python -m pip install ./python_generated;" ] diff --git a/test/python/test_serialize.py b/test/python/test_serialize.py index 8dbc7cc..7ad1732 100644 --- a/test/python/test_serialize.py +++ b/test/python/test_serialize.py @@ -204,7 +204,7 @@ if __name__ == "__main__": save_cache( { - "raw": res.raw_data, + "raw": res.raw_data.decode("utf-8"), "type": res.data.__class__.__name__, } )