Skip to content

Commit 9f9fd28

Browse files
committed
chore: use Pydantic to generate OpenAPI schema
Signed-off-by: Sébastien Han <[email protected]>
1 parent 4a2ea27 commit 9f9fd28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+70413
-93077
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ repos:
100100
name: API Spec Codegen
101101
additional_dependencies:
102102
- uv==0.7.8
103-
entry: sh -c 'uv run ./docs/openapi_generator/run_openapi_generator.sh > /dev/null'
103+
entry: sh -c 'uv run python3 -c "from docs.openapi_generator.fastapi_generator import generate_openapi_spec; generate_openapi_spec(\"docs/static\")" > /dev/null'
104104
language: python
105105
pass_filenames: false
106106
require_serial: true

0 commit comments

Comments
 (0)