-
Notifications
You must be signed in to change notification settings - Fork 94
LCORE-2572: Up to date OpenAPI documentation for /config and health endpoints #1934
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3035,6 +3035,14 @@ Ensures the application configuration is loaded before returning it. | |
| - request: The incoming HTTP request. | ||
| - auth: Authentication tuple from the auth dependency. | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+3038
to
+3044
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sync the
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 3038-3038: Headings should be surrounded by blank lines (MD022, blanks-around-headings) 🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - ConfigurationResponse: The loaded service configuration response. | ||
|
|
||
|
|
@@ -4800,6 +4808,14 @@ service is ready. | |
| - response: The outgoing HTTP response (used by middleware). | ||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+4811
to
+4817
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sync the
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 4811-4811: Headings should be surrounded by blank lines (MD022, blanks-around-headings) 🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - ReadinessResponse: Object with `ready` indicating overall readiness, | ||
| `reason` explaining the outcome, and `providers` containing the list of | ||
|
|
@@ -4880,6 +4896,14 @@ Return the liveness status of the service. | |
| ### Parameters: | ||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+4899
to
+4905
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sync the
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 4899-4899: Headings should be surrounded by blank lines (MD022, blanks-around-headings) 🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - LivenessResponse: Indicates that the service is alive. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,14 @@ async def config_endpoint_handler( | |
| - request: The incoming HTTP request. | ||
| - auth: Authentication tuple from the auth dependency. | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+54
to
+60
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win Inconsistent documentation of detail structure in Raises sections across all three endpoints. All three endpoints (config, readiness, liveness) document Either document the detail structure for all error statuses, or document it for none. For consistency with the error model contract, recommend documenting it for all four (401, 403, 500, 503).
📍 Affects 2 files
🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - ConfigurationResponse: The loaded service configuration response. | ||
| """ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,6 +127,14 @@ async def readiness_probe_get_method( | |
| - response: The outgoing HTTP response (used by middleware). | ||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+130
to
+136
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mismatch between documented Raises and responses decorator: status 500 not in responses dict. The docstring documents HTTPException with status 500, but Either remove 500 from the docstring Raises section, or add 🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - ReadinessResponse: Object with `ready` indicating overall readiness, | ||
| `reason` explaining the outcome, and `providers` containing the list of | ||
|
|
@@ -177,6 +185,14 @@ async def liveness_probe_get_method( | |
| ### Parameters: | ||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+188
to
+194
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mismatch between documented Raises and responses decorator: status 500 not in responses dict. The docstring documents HTTPException with status 500, but Either remove 500 from the docstring Raises section, or add 🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - LivenessResponse: Indicates that the service is alive. | ||
| """ | ||
|
|
||
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.
Regenerate OpenAPI artifact to resolve CI-blocking schema drift.
Line 6713 is part of a manually updated generated file, but CI shows
docs/openapi.jsonis still out of date versus the generator output. Please regenerate and commit the full artifact so the documented/config,/readiness, and/livenessdescriptions match source-generated schema exactly.🤖 Prompt for AI Agents
Source: Pipeline failures