[PR #486] Add native OpenAPI importer #3335

Open
opened 2026-07-15 02:02:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/486
Author: @gschier
Created: 6/29/2026
Status: 🔄 Open

Base: mainHead: codex/native-openapi-importer


📝 Commits (3)

  • 016fcba Add native OpenAPI importer
  • 3b9c311 Avoid regex trimming in OpenAPI importer
  • 580302c Use baseUrl variable for OpenAPI imports

📊 Changes

14 files changed (+8034 additions, -520 deletions)

View changed files

📝 crates/yaak-plugins/src/manager.rs (+1 -1)
📝 package-lock.json (+353 -496)
📝 plugins/importer-openapi/package.json (+2 -2)
📝 plugins/importer-openapi/src/index.ts (+810 -18)
plugins/importer-openapi/src/legacy.ts (+26 -0)
plugins/importer-openapi/tests/__snapshots__/index.test.ts.snap (+2741 -0)
plugins/importer-openapi/tests/__snapshots__/legacy.test.ts.snap (+2202 -0)
plugins/importer-openapi/tests/fixtures/real-world/SOURCES.md (+8 -0)
plugins/importer-openapi/tests/fixtures/real-world/apis-guru.yaml (+399 -0)
plugins/importer-openapi/tests/fixtures/real-world/httpbin.yaml (+1121 -0)
plugins/importer-openapi/tests/fixtures/real-world/nasa-apod.yaml (+69 -0)
plugins/importer-openapi/tests/fixtures/real-world/xkcd.yaml (+78 -0)
📝 plugins/importer-openapi/tests/index.test.ts (+205 -3)
plugins/importer-openapi/tests/legacy.test.ts (+19 -0)

📄 Description

Adds a native OpenAPI importer so OpenAPI files no longer have to round-trip through the Postman->OpenAPI converter path. This improves large-schema imports as well, which used to fail.

  • Parse OpenAPI/Swagger documents directly into Yaak workspaces, folders, requests, parameters, headers, bodies, descriptions, and auth.
  • Add focused native importer tests plus real-world fixture snapshots for APIs.guru, httpbin, NASA APOD, and XKCD.
  • Add legacy converter snapshots so imported data can be compared against the old Postman-based path during review.
  • Increase the plugin import wait timeout so large imports like Cloudflare can complete through the CLI/app import path.

Feedback: https://yaak.app/feedback/posts/problems-with-big-schemas


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/486 **Author:** [@gschier](https://github.com/gschier) **Created:** 6/29/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/native-openapi-importer` --- ### 📝 Commits (3) - [`016fcba`](https://github.com/mountain-loop/yaak/commit/016fcba1c6e9b4fee772d426db11c6d5c75ff839) Add native OpenAPI importer - [`3b9c311`](https://github.com/mountain-loop/yaak/commit/3b9c311dc5f1c2112bc0aeb63827ef0815939ade) Avoid regex trimming in OpenAPI importer - [`580302c`](https://github.com/mountain-loop/yaak/commit/580302cbd25e090d4a432481cb1f427ff85722d4) Use baseUrl variable for OpenAPI imports ### 📊 Changes **14 files changed** (+8034 additions, -520 deletions) <details> <summary>View changed files</summary> 📝 `crates/yaak-plugins/src/manager.rs` (+1 -1) 📝 `package-lock.json` (+353 -496) 📝 `plugins/importer-openapi/package.json` (+2 -2) 📝 `plugins/importer-openapi/src/index.ts` (+810 -18) ➕ `plugins/importer-openapi/src/legacy.ts` (+26 -0) ➕ `plugins/importer-openapi/tests/__snapshots__/index.test.ts.snap` (+2741 -0) ➕ `plugins/importer-openapi/tests/__snapshots__/legacy.test.ts.snap` (+2202 -0) ➕ `plugins/importer-openapi/tests/fixtures/real-world/SOURCES.md` (+8 -0) ➕ `plugins/importer-openapi/tests/fixtures/real-world/apis-guru.yaml` (+399 -0) ➕ `plugins/importer-openapi/tests/fixtures/real-world/httpbin.yaml` (+1121 -0) ➕ `plugins/importer-openapi/tests/fixtures/real-world/nasa-apod.yaml` (+69 -0) ➕ `plugins/importer-openapi/tests/fixtures/real-world/xkcd.yaml` (+78 -0) 📝 `plugins/importer-openapi/tests/index.test.ts` (+205 -3) ➕ `plugins/importer-openapi/tests/legacy.test.ts` (+19 -0) </details> ### 📄 Description Adds a native OpenAPI importer so OpenAPI files no longer have to round-trip through the Postman->OpenAPI converter path. This improves large-schema imports as well, which used to fail. - Parse OpenAPI/Swagger documents directly into Yaak workspaces, folders, requests, parameters, headers, bodies, descriptions, and auth. - Add focused native importer tests plus real-world fixture snapshots for APIs.guru, httpbin, NASA APOD, and XKCD. - Add legacy converter snapshots so imported data can be compared against the old Postman-based path during review. - Increase the plugin import wait timeout so large imports like Cloudflare can complete through the CLI/app import path. Feedback: https://yaak.app/feedback/posts/problems-with-big-schemas --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-07-15 02:02:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/yaak#3335