The best method of splitting OpenAPIs is to divide them based on functionality or domain. This means grouping related endpoints together, which can make the API easier to understand and maintain. Additionally, consider using versioning to manage changes over time and ensure backward compatibility.
There's many ways to separate an Open API specification file, but it all boils down to using `$ref`. You can use `$ref` in certain contexts to refer to other specification files for components or even JSON Schema files.
Stoplight Studio can help you manage your refs as well: https://meta.stoplight.io/docs/platform/ZG9jOjM2OTM3Mjk0-using-references
Let Stoplight be your platform for building high-quality APIs for any scale - with best-in-class editing, documentation, and governance featuring built-in mocking, linting, style guides, component lib
With over 3 million reviews, we can provide the specific details that help you make an informed software buying decision for your business. Finding the right product is important, let us help.