Skip to content

chore: update OpenAPI schema#74

Merged
Kilerd merged 1 commit intomainfrom
chore/update-openapi-schema
Apr 28, 2026
Merged

chore: update OpenAPI schema#74
Kilerd merged 1 commit intomainfrom
chore/update-openapi-schema

Conversation

@fishaudio-bot
Copy link
Copy Markdown
Collaborator

@fishaudio-bot fishaudio-bot commented Apr 28, 2026

Auto-generated update from https://api.fish.audio/openapi.json

Summary by CodeRabbit

  • New Features
    • Added has_more field to the GET /model API response, indicating whether additional pages are available for pagination.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

📝 Walkthrough

Walkthrough

The OpenAPI schema for the GET /model endpoint was updated to include a new top-level has_more field in the successful response. This boolean field indicates whether additional pages of data are available, defaulting to null.

Changes

Cohort / File(s) Summary
API Schema Update
api-reference/openapi.json
Added has_more field to GET /model 200 response schema (boolean | null, default null) to indicate pagination availability.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • twangodev

Poem

🐰 A little hop, a schema change so small,
One field to say "there's more, or not at all!"
has_more now whispers when pages align,
Pagination's truth in bits so fine! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'chore: update OpenAPI schema' is vague and does not specify what changes were made to the schema, only that it was updated. Consider a more specific title such as 'chore: add has_more field to GET /model response' to clearly indicate the schema modification.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/update-openapi-schema

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
api-reference/openapi.json (2)

683-700: ⚠️ Potential issue | 🟡 Minor

** Clarify nullability + presence: add description and consider required: has_more.**

has_more is defined as boolean | null with default: null, but it’s not included in the response required list (only total and items are required). If the API always returns has_more for successful paginated responses, it should likely be added to required to match that expectation.

Additionally, the schema has a title but no description, so it’s unclear what null means operationally (e.g., “legacy/unknown”, “not paginated”, or “no more pages”). Consider adding a description and aligning required/null semantics with how your implementation actually behaves.
As per coding guidelines, “Minor/low-impact issues: User-facing text quality issues … or i18n/l10n defects that break flows.” (schema contract clarity)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@api-reference/openapi.json` around lines 683 - 700, The schema's has_more
property is currently nullable (boolean|null) with default:null but not listed
in required, which causes ambiguity; update the OpenAPI schema by adding a clear
description for has_more explaining what null means (e.g., "unknown/legacy",
"not paginated", or "no more pages") and then align required/null semantics with
actual API behavior—if successful paginated responses always include has_more,
add "has_more" to the required array (alongside "total" and "items"); otherwise
document why it may be omitted and keep it optional but with an explicit
description and appropriate default.

670-700: ⚠️ Potential issue | 🟠 Major

** Update SDK pagination model to include has_more.**

You’ve added a new top-level response field has_more to GET /model’s 200 schema (boolean | null, default null). However, the Python SDK docs snippet in api-reference/sdk/python/types.mdx shows a PaginatedResponse type containing only total and items (no has_more). This is likely to cause SDK typing gaps and/or pagination logic differences (clients may still infer “has more” solely from total).

Please update the SDK model/type (and any generated client code/docs) so pagination consumers can use has_more consistently with the API contract. Also consider adding a short migration note if older SDK versions won’t expose the field.
As per coding guidelines, “Issues are defects or risks that break functionality, security, compliance, or the user experience and must be fixed before release.” (mapping/API contract correctness)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@api-reference/openapi.json` around lines 670 - 700, The Python SDK
PaginatedResponse type (in api-reference/sdk/python/types.mdx) must be updated
to include the new top-level field has_more (typing: Optional[bool], default
None) to match the GET /model 200 response schema; update the PaginatedResponse
declaration and any generated client models that reference it (search for
PaginatedResponse and ModelEntity usages), regenerate docs/client stubs so the
field appears in method return types, and add a brief migration note in the SDK
docs stating older SDKs may not expose has_more and clients should fallback to
computing pagination from total/items if missing.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@api-reference/openapi.json`:
- Around line 683-700: The schema's has_more property is currently nullable
(boolean|null) with default:null but not listed in required, which causes
ambiguity; update the OpenAPI schema by adding a clear description for has_more
explaining what null means (e.g., "unknown/legacy", "not paginated", or "no more
pages") and then align required/null semantics with actual API behavior—if
successful paginated responses always include has_more, add "has_more" to the
required array (alongside "total" and "items"); otherwise document why it may be
omitted and keep it optional but with an explicit description and appropriate
default.
- Around line 670-700: The Python SDK PaginatedResponse type (in
api-reference/sdk/python/types.mdx) must be updated to include the new top-level
field has_more (typing: Optional[bool], default None) to match the GET /model
200 response schema; update the PaginatedResponse declaration and any generated
client models that reference it (search for PaginatedResponse and ModelEntity
usages), regenerate docs/client stubs so the field appears in method return
types, and add a brief migration note in the SDK docs stating older SDKs may not
expose has_more and clients should fallback to computing pagination from
total/items if missing.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ed333362-a0e0-41a6-8352-aef21b817c73

📥 Commits

Reviewing files that changed from the base of the PR and between ca29060 and e49900f.

📒 Files selected for processing (1)
  • api-reference/openapi.json

@Kilerd Kilerd merged commit 075025c into main Apr 28, 2026
6 checks passed
@Kilerd Kilerd deleted the chore/update-openapi-schema branch April 28, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants