feat(import): add Swagger/OpenAPI import and URL fetching support#26
Closed
moosebay wants to merge 3 commits into
Closed
feat(import): add Swagger/OpenAPI import and URL fetching support#26moosebay wants to merge 3 commits into
moosebay wants to merge 3 commits into
Conversation
Add ability to import Swagger 2.0 and OpenAPI 3.x specs, both as file uploads and by pasting a URL to a spec endpoint (e.g. petstore.swagger.io). - New `topenapiv2` translator package supporting both JSON and YAML specs - Format detection for swagger/openapi with confidence scoring - URL fetching: when textData is a URL, fetch content before detection - Resolve textData→Data in ImportUnified so text-based imports work - Frontend: update import dialog to mention Swagger/OpenAPI support https://claude.ai/code/session_01EwPbaQQKMuSYTBqxHCSw8j
Add comprehensive tests with realistic fixture files: - Petstore Swagger 2.0 (14 operations across pet/store/user) - Stripe-like OpenAPI 3.0 (9 operations across customers/charges/refunds) Tests verify: request counts, HTTP methods, path params, query params, headers, request bodies, flow structure integrity, file structure, no duplicate IDs, workspace consistency, and body kind correctness. https://claude.ai/code/session_01EwPbaQQKMuSYTBqxHCSw8j
Contributor
Author
|
Closing in favor of new PR with renamed branch (feat/ prefix) and squashed commits. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add ability to import Swagger 2.0 and OpenAPI 3.x specs, both as file
uploads and by pasting a URL to a spec endpoint (e.g. petstore.swagger.io).
topenapiv2translator package supporting both JSON and YAML specshttps://claude.ai/code/session_01EwPbaQQKMuSYTBqxHCSw8j