-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat:Update OpenAPI Specification with New Endpoints and Response Schemas #59
Conversation
WalkthroughThe pull request introduces significant updates to the OpenAPI specification for the Instill AI API. It adds new endpoints for searching and listing catalog chunks, along with corresponding response schemas. Additionally, it updates an existing endpoint for listing catalog files to include a new response schema. The Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
src/libs/Instill/openapi.yaml (2)
Line range hint
1591-1717
: Consider enhancing pagination implementation for search chunks endpointThe search chunks endpoint could benefit from consistent pagination implementation:
- Add
nextPageToken
in response schema for cursor-based pagination- Consider adding sorting parameters for deterministic ordering
'/v1alpha/namespaces/{namespaceId}/chunks': get: parameters: + - name: pageToken + in: query + description: Token for the next page of results + schema: + type: string + - name: orderBy + in: query + description: Field to sort by, e.g. "createTime desc" + schema: + type: string responses: '200': content: application/json: schema: properties: + nextPageToken: + type: string + description: Token for retrieving the next page
10125-10127
: Add validation constraints for originalFileName fieldConsider adding validation constraints to ensure data quality:
originalFileName: title: original file name type: string + maxLength: 255 + pattern: '^[a-zA-Z0-9._-]+$' + description: "Original filename with extension. Must contain only alphanumeric characters, dots, underscores and hyphens."
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (16)
src/libs/Instill/Generated/Instill.ArtifactClient.ListChunks.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.ArtifactClient.SearchChunks.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.ArtifactClient.SearchSourceFiles.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.IArtifactClient.ListChunks.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.IArtifactClient.SearchChunks.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.IArtifactClient.SearchSourceFiles.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.Json.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchChunksResponse.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.Json.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchChunksResponse2.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.Json.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.Json.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SearchSourceFilesResponse2.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/Instill.Models.SourceFile.g.cs
is excluded by!**/generated/**
src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs
is excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/Instill/openapi.yaml
(5 hunks)
🔇 Additional comments (1)
src/libs/Instill/openapi.yaml (1)
Line range hint 1-10127
: API specification follows OpenAPI best practices
The OpenAPI specification demonstrates good practices:
- Consistent error handling using standard response schemas
- Proper authentication configuration
- Comprehensive endpoint documentation
- Clear parameter descriptions
- Logical endpoint grouping by tags
Summary by CodeRabbit
New Features
originalFileName
.Bug Fixes