Migrating from Stoplight? Keep Your OpenAPI Specs in Git

Migrating from Stoplight? Learn how Apidog spec-first mode helps teams keep OpenAPI specs, docs, models, linting feedback, and Git workflows connected.

Sharki

Sharki

5 June 2026

Migrating from Stoplight? Keep Your OpenAPI Specs in Git

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

If your team is planning a Stoplight migration, you are probably not just replacing an OpenAPI editor.

In many Stoplight-based teams, the real API workflow is split across several places: Stoplight manages API documentation and OpenAPI specs, GitHub or GitLab stores the source files, Postman manages collections, environments, shared secrets, manual testing, and QA collaboration, while CI/CD keeps validation results in pipeline logs.

So the migration question is not simply “where do we import the OpenAPI file?” It is: how do you move the API contract, Markdown docs, reusable models, documentation navigation, Git review, request examples, tests, and team collaboration without rebuilding the whole workflow from scratch?

That is why a Stoplight migration should not start with a blank API project. It should start with the repository and project structure your team already depends on.

Apidog spec-first mode is built for that kind of migration path. It lets teams keep OpenAPI specs file-based, connect them to Git when needed, and bring the surrounding API work into a broader Apidog workspace for docs, mocks, tests, reports, permissions, and collaboration.

The goal is not to take specs out of Git. The goal is to keep the contract as the anchor while reducing the workflow fragmentation around it.

Why Stoplight Migration Is Harder Than OpenAPI Import

Migrating from Stoplight is not the same as importing one Swagger or OpenAPI file.

A Stoplight-style project often includes more than endpoints:

Those files carry project context. They describe not only what the API is, but also how the API project is organized and how people navigate it.

If migration only preserves endpoints, the team may still lose the structure that made the project usable. Docs may need to be rebuilt. Navigation may need to be recreated. Models may become harder to trace. Tests, mocks, and collaboration workflows may need to be reconnected manually.

A better migration plan treats the repository as the starting point.

The Workflow Most Stoplight Teams Are Trying to Preserve

Most Stoplight teams are not trying to abandon file-based API work. They are trying to keep the useful parts while removing the duplicated work that appears when specs, docs, client collections, test results, and team decisions live in separate tools.

The friction usually appears when one API change has to move through several tools.

The diagram below shows how one API change can either scatter across tools or move through a connected spec-first workflow.

Workflow stepBefore migration: Stoplight + Git + API clientAfter Apidog spec-first mode
Change the API contractUpdate OpenAPI files in Git or Stoplight, then make sure published docs catch upKeep OpenAPI files as the contract source in a Git-connected or file-backed spec project
Maintain docs and structureManage Markdown docs, navigation, models, and project paths through Stoplight-style filesBring Markdown docs, models, .stoplight.json, and toc.json into the migration scope, then validate how each maps into the spec-first project
Update requests and testsMaintain API client examples, environments, and manual tests separately from the specRebuild request, mock, and test workflows around the connected OpenAPI contract
Keep standards and validation visibleLinting feedback, CI/CD logs, test results, docs links, and decisions are shared across separate toolsReal-time linting, docs, tests, reports, permissions, and collaboration can live around the same API project
Review future changesGit may review the spec, while daily API collaboration happens elsewhereGit-connected projects can sync, edit, commit, and push while Apidog supports day-to-day API work

This is the workflow problem Apidog spec-first mode is meant to address. The API contract can remain file-based, but the work around the contract does not have to stay scattered.

What Apidog Spec-First Mode Changes

Apidog spec-first mode starts from files instead of a blank visual API project.

Teams can create a spec-first project from a Git repository, or start with a file-backed spec project before connecting external Git. Once the project is created, Apidog opens a Specs workspace where teams can browse, create, edit, and organize project files.

The basic migration model looks like this:

In practice, a Stoplight-style migration should account for common project assets such as OpenAPI specs, Markdown docs, JSON Schema models, images, .stoplight.json, and toc.json when present. These assets should be validated as project context, not treated as a one-file OpenAPI import.

The important shift is this: the files remain the foundation, but the team gets a workspace around them. That workspace can connect the contract to documentation, real-time linting feedback, mocks, test scenarios, CI/CD execution, reports, permissions, and collaboration.

What Happens to Stoplight-Style Project Files

The strongest migration path is to evaluate the project structure, not only the OpenAPI file.

Stoplight-style assetWhy it matters in migration
OpenAPI specsSource for API modules, endpoints, schemas, and examples
Markdown docsWritten documentation that lives beside the API contract
JSON Schema modelsReusable model definitions that should be validated after migration
ImagesDocumentation assets referenced by Markdown pages
.stoplight.jsonProject path configuration for specs, docs, models, images, and navigation files
toc.jsonNavigation order, grouping, and documentation structure
Linting and style rulesAPI design standards and validation feedback that should remain visible while teams review and edit specs
Stoplight IDsMetadata to review during migration; they may remain in source files but should not be treated as a complete migration guarantee

This is why a Stoplight migration should be evaluated at the project level. If your team already has a repository with specs, docs, models, images, and navigation files, that repository is the best starting point.

Git-Connected or File-Backed: Choose Your Starting Point

Not every team starts migration from the same place.

Some teams already have a mature repository-based workflow. Others have specs and docs as files but are not ready to connect an external Git provider during the first rollout.

Apidog spec-first mode supports both paths.

Project typeBest forWorkflow
Git-connected spec projectTeams that already manage OpenAPI files in GitConnect repo, sync branch, edit files, commit and push
File-backed spec projectTeams that want file-based spec management before connecting GitWork with spec files inside Apidog and save changes

For Git-connected teams, Git can remain the contract source while Apidog becomes the workspace for using and collaborating around that contract.

For teams earlier in the rollout, a file-backed spec project gives them a lower-friction way to validate the workflow before deciding how strictly external Git should govern daily changes.

What About API Client Assets?

Many Stoplight teams also have API client assets: request examples, environments, manual test flows, Postman collections, Bruno files, or internal scripts.

Those assets are important, but they are not the same thing as the OpenAPI contract.

During migration, separate the contract from the client workflow:

QuestionMigration implication
Where is the authoritative API contract?Start with the OpenAPI files and project structure.
Which request examples or tests still matter?Rebuild or migrate them around the connected API workspace.
Which environment variables or secrets are shared?Plan how they should be managed in the new workflow.
Which reports or CI jobs need visibility?Connect testing and reporting to the broader Apidog workflow.

This keeps the migration realistic. Start with the source contract first, then reconnect request examples, tests, environments, and reports around that contract.

Stoplight Migration Checklist

Before moving a Stoplight-style project, review the project and workflow as a whole.

AreaQuestions to answer
Source of truthWhich repository, branch, and folder contain the authoritative OpenAPI files?
Project pathsDoes the repo use .stoplight.json to define OpenAPI, docs, models, image paths, or navigation paths?
NavigationDoes the repo use toc.json for docs and API grouping?
DocumentationWhich Markdown docs should be preserved? Are there images or internal links?
ModelsAre JSON Schema models stored separately from OpenAPI specs?
Branch workflowShould API changes happen through pull requests, Apidog editing, or both?
Client assetsWhich request examples, test flows, or environment settings need to be rebuilt around the contract?
RolloutWhich teams need onboarding: backend, frontend, QA, platform, product, partners?

The best migration plan does not move everything at once. It anchors the workflow around the API contract first, then connects docs, mocks, testing, reports, and collaboration around it.

When This Migration Path Makes Sense

Apidog spec-first mode is a strong fit for Stoplight migration when:

It is not necessary to migrate every surrounding asset on day one. The first job is to preserve the API contract and project structure. The second job is to reconnect the daily API workflow around that contract.

FAQ

Is Apidog spec-first mode a Stoplight alternative?

It can be used as a Stoplight alternative for teams that want to manage OpenAPI projects as files while adding a broader API collaboration and execution workflow around those files.

Can I keep OpenAPI specs in Git?

Yes. For Git-connected projects, Git can remain the source of truth. Teams can sync a branch, edit specs, and commit changes back to the repository.

Do I need Git to start?

No. Teams can also start with a file-backed spec project and save changes inside Apidog. This is useful when you want file-based spec management before connecting an external Git provider.

What happens to Markdown docs and Stoplight-style project files?

Markdown docs, JSON Schema models, images, .stoplight.json, and toc.json should be reviewed as part of the project context. That is why migration should start from the repository structure, not only from one OpenAPI file.

Conclusion

Stoplight migration should not mean giving up file-based API work.

For many teams, the repository is still the right source of truth. OpenAPI specs, Markdown docs, JSON Schema models, and project structure files should remain portable and reviewable.

But the API workflow around those files can be better connected.

Apidog spec-first mode gives Stoplight teams a practical migration path: keep OpenAPI specs as files, review Stoplight-style project context during migration, and connect the contract to a broader API workspace for docs, mocks, testing, reports, permissions, and collaboration.

Planning a Stoplight migration? Talk to Apidog Enterprise about bringing your OpenAPI specs, docs, mocks, tests, and collaboration into a spec-first workspace.

You can also try Apidog and create a spec-first project from files or Git to evaluate the workflow yourself.

Explore more

Postman Costs Too Much for Teams: Best Alternative?

Postman Costs Too Much for Teams: Best Alternative?

Postman pricing is too expensive for teams. Compare Postman vs Apidog pricing: paid vs free API collaboration. Discover the best Postman alternative for your budget.

8 June 2026

How to Use Postman for Free 2026

How to Use Postman for Free 2026

You can use Postman for free for personal use—sign up and start building APIs with limits. From March 2026 Postman free is 1 user only and 25 collection runs per month. We explain how to use Postman for free and the best Postman alternative for teams with 4 users and unlimited runs at $0.

10 February 2026

Why Do Some API Technical Writers Succeed While Others Struggle

Why Do Some API Technical Writers Succeed While Others Struggle

Discover proven strategies that separate successful API technical writers from those who struggle. Learn essential skills, tools, and techniques to create clear, developer-friendly API documentation that drives adoption and reduces support burden.

17 July 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

Migrating from Stoplight? Keep Your OpenAPI Specs in Git