Skip to Content
API DesignReuse Components and Split Files

Reuse Components Inside an OpenAPI Spec

Creating shared components and reusing them within an OpenAPI spec is a common best practice that aligns well with backend logic and design.

You can easily create popular reusable components through our intuitive editor and reuse them in other parts of the spec.

Reuse components in a spec

Split Components Into Multiple Files

In more advanced scenarios, you may have multiple API specs that need to share component definitions. We fully support this approach.

You can split your specification into multiple component files and reference them from other files, enabling efficient component sharing across your API ecosystem.

Reuse components in split files

Last updated on