-
Notifications
You must be signed in to change notification settings - Fork 78
feat: split command for api-gen package #2013
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Pull Request Overview
This PR introduces a new split
command for the api-gen package that allows users to split large OpenAPI schemas into smaller files organized by tags or paths. This helps address performance issues when importing large schemas into API clients like Postman or Insomnia.
Key changes:
- Added a new
split
command with comprehensive functionality for schema splitting - Implemented utilities for schema manipulation and filtering
- Added comprehensive test coverage for all split command functionality
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
packages/api-gen/src/commands/split.ts | Main implementation of the split command with support for tags/paths splitting and filtering |
packages/api-gen/src/utils/schemaSplitter.ts | Utility functions for schema manipulation, filtering, and component cleanup |
packages/api-gen/src/cli.ts | CLI command registration with options for split functionality |
packages/api-gen/tests/split.test.ts | Comprehensive test suite covering all split command scenarios |
packages/api-gen/tests/api-types/splitTestSchema.json | Test fixture providing OpenAPI schema for testing split functionality |
packages/api-gen/README.md | Documentation for the new split command with usage examples |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CodSpeed Performance ReportMerging #2013 will not alter performanceComparing Summary
Footnotes |
@patzick please tell me when released. Thanks. |
I just saw there is no changeset, needs to be added But you can already use it in canary! Can you confirm it works as expected? |
Description
closes: #1715
Type of change
New feature (non-breaking change which adds functionality)
ToDo's