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__, } )