Skip to content

Commit dd67339

Browse files
committed
chore: use Pydantic to generate OpenAPI schema
Removes the need for the strong_typing and pyopenapi packages and purely use Pydantic for schema generation. Signed-off-by: Sébastien Han <[email protected]>
1 parent b4ea05a commit dd67339

Some content is hidden

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

44 files changed

+59374
-96600
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ repos:
4242
hooks:
4343
- id: ruff
4444
args: [ --fix ]
45-
exclude: ^src/llama_stack/strong_typing/.*$
4645
- id: ruff-format
4746

4847
- repo: https://github.com/adamchainz/blacken-docs
@@ -109,11 +108,11 @@ repos:
109108
name: API Spec Codegen
110109
additional_dependencies:
111110
- uv==0.7.8
112-
entry: sh -c 'uv run ./docs/openapi_generator/run_openapi_generator.sh > /dev/null'
111+
entry: uv run scripts/fastapi_generator.py docs/static
113112
language: python
114113
pass_filenames: false
115114
require_serial: true
116-
files: ^src/llama_stack/apis/|^docs/openapi_generator/
115+
files: ^src/llama_stack/apis/
117116
- id: check-workflows-use-hashes
118117
name: Check GitHub Actions use SHA-pinned actions
119118
entry: ./scripts/check-workflows-use-hashes.sh

0 commit comments

Comments
 (0)