While the openapi-bundler can compose an OpenAPI spec from multiple discrete parts, is there a way decompose a valid OpenAPI specification into its constituent parts?
Minimally an OpenAPI specification can be decomposed into the following parts:
- schemas: all schemas under component/schemas
- core spec: all parts of the spec except schemas, decomposed and saved to a string/file/stream; "$ref" would be used to reference decomposed schemas
These decomposed parts would also be the same parts that the openapi-bundler would be able to compose back into a full OpenAPI specification.