New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support references to component objects across specification documents #764
Comments
Use Case The main use case that this will solve is to give users the ability to centralize their data type definitions, perhaps in a single file (or a set of files). These data types can then be leveraged in multiple API definitions by referencing their central location. Considerations In order to support external references, a number of enhancements are needed. Here is a list in no particular order:
Here is some information about the allowed values for a
More information about references can be found in the OpenAPI specification and the JSON Reference RFC. |
Would it be possible to prioritise implementation of references to DataTypes from another specification within Apicurio (rather than external references initially)? The reason I say this is that some cross-reference functionality is necessary for any non-trivial usage of Swagger. For example, we are implementing various services that share data types (e.g. addresses, people etc.) and would like to use Apicurio for the specifications for all of these. However, at the moment we cannot because of the inability to use cross-references. |
Agreed, this would bring us into killer app territory. |
@jsenko It looks like once we wrap up the registry impl, we have a clear priority from the community. :) |
i'd love to see this, using apicurio at work and references would be incredibly useful to different teams. |
I realize this has taken a little while, but external references will be officially supported as of Beta 2.46, which is the next release (will hopefully be done tomorrow). There is a new UI to import Data Types and Responses from other Apicurio Studio documents into the current one. In addition, validation has been updated to support resolving external http/s as well as Apicurio-internal references. This should be a good first step towards mature support for references across documents. |
Currently, reference objects in Apicurio can only point to the same document they are used in. Implement features to allow for referencing component objects from another documents.
Considerations:
Similar/Included issues:
The text was updated successfully, but these errors were encountered: