Skip to content

Conversation

@moosebay
Copy link
Contributor

@moosebay moosebay commented Feb 8, 2026

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 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
@moosebay moosebay requested a review from ElecTwix February 8, 2026 20:11
@moosebay
Copy link
Contributor Author

moosebay commented Feb 9, 2026

Closing in favor of new PR with renamed branch (feat/ prefix) and squashed commits.

@moosebay moosebay closed this Feb 9, 2026
@moosebay moosebay deleted the claude/add-swagger-openapi-imports-5jEMg branch February 9, 2026 07:11
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