mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
update pyantic v2
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
396b569795
commit
5f0cf832f4
2 changed files with 3 additions and 3 deletions
4
.vscode/tasks.json
vendored
4
.vscode/tasks.json
vendored
|
|
@ -8,7 +8,7 @@
|
||||||
"command": [
|
"command": [
|
||||||
"source .venv/bin/activate;",
|
"source .venv/bin/activate;",
|
||||||
"python3 tools/build.py;",
|
"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 test/python/replace.py;",
|
||||||
"python3 -m pip install ./python_generated;"
|
"python3 -m pip install ./python_generated;"
|
||||||
]
|
]
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
".venv/Scripts/activate;",
|
".venv/Scripts/activate;",
|
||||||
"python tools/build.py;",
|
"python tools/build.py;",
|
||||||
"scoop reset temurin11-jdk;",
|
"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 test/python/replace.py;",
|
||||||
"python -m pip install ./python_generated;"
|
"python -m pip install ./python_generated;"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
save_cache(
|
save_cache(
|
||||||
{
|
{
|
||||||
"raw": res.raw_data,
|
"raw": res.raw_data.decode("utf-8"),
|
||||||
"type": res.data.__class__.__name__,
|
"type": res.data.__class__.__name__,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue