-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add static OpenAPI reference page with Scalar UI #319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
51f1ffd
feat: add static OpenAPI reference page with Scalar UI (#296)
Aureliolo 75bf3cd
fix: repair broken hookify rules and add no-future-annotations rule
Aureliolo 5f6bb2e
docs: update documentation for REST API vs Library Reference split
Aureliolo dbcaf1f
fix: address PR review findings from 8 reviewers
Aureliolo 4e2de83
ci: fix zizmor secrets-outside-env and dependabot-cooldown findings
Aureliolo ebea18c
ci: pass config path to zizmor-action for .zizmor.yml discovery
Aureliolo 2d73ff9
fix: restore disclaimer banner and improve Scalar UI full-width layout
Aureliolo bb9dd9b
fix: standalone Scalar UI, zizmor config, and review feedback
Aureliolo 6cb06cc
fix: address PR review findings from local agents and external reviewers
Aureliolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| name: no-future-annotations | ||
| enabled: true | ||
| event: file | ||
| pattern: from\s+__future__\s+import\s+annotations | ||
| action: block | ||
| --- | ||
|
|
||
| **`from __future__ import annotations` is forbidden in this project.** | ||
|
|
||
| Python 3.14 has PEP 649 native lazy annotations, making this import unnecessary. | ||
| The project CLAUDE.md explicitly states: "No `from __future__ import annotations`". | ||
|
|
||
| Remove this import and use native type hints directly. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| rules: | ||
| # Daily Dependabot updates are intentional — see CLAUDE.md and dependabot.yml. | ||
| # The project uses daily checks with grouped minor/patch to stay current. | ||
| dependabot-cooldown: | ||
| disable: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # API Reference | ||
| # Library Reference | ||
|
|
||
| Auto-generated reference documentation from source code docstrings. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # REST API Reference | ||
|
|
||
| Interactive API documentation powered by [Scalar](https://scalar.com/) and the OpenAPI schema exported from the Litestar application. | ||
|
|
||
| **[Open REST API Reference :material-open-in-new:](../_generated/api-reference.html){ .md-button .md-button--primary }** | ||
|
|
||
| When running the server locally, live interactive docs are available at `/docs/api` (Scalar UI) and `/docs/openapi.json` (OpenAPI schema). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hookify rule uses wrong schema —
conditions:block is missingThe
pattern:key here is placed at the top level of the front matter, but in every other hookify rule in this project (hookify.function-length.md,hookify.missing-logger.md) the matching criteria live inside aconditions:array with explicitfield:,operator:, andpattern:fields.Without a
conditions:block the hook has no predicate to evaluate: depending on how hookify handles an unknown top-levelpattern:key, this rule will either fire on every file event (very noisy) or never fire at all (silently skipping the check it's supposed to enforce).The equivalent structured form, consistent with the other rules, would be:
Prompt To Fix With AI