Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidModel = errors.New("invalid model")
ErrInvalidModel is returned when the model is not usable.
Functions ¶
func BundleBytes ¶
func BundleBytes(bytes []byte, configuration *datamodel.DocumentConfiguration) ([]byte, error)
BundleBytes will take a byte slice of an OpenAPI specification and return a bundled version of it. This is useful for when you want to take a specification with external references, and you want to bundle it into a single document.
This function will 'resolve' all references in the specification and return a single document. The resulting document will be a valid OpenAPI specification, containing no references.
Circular references will not be resolved and will be skipped.
func BundleDocument ¶
BundleDocument will take a v3.Document and return a bundled version of it. This is useful for when you want to take a document that has been built from a specification with external references, and you want to bundle it into a single document.
This function will 'resolve' all references in the specification and return a single document. The resulting document will be a valid OpenAPI specification, containing no references.
Circular references will not be resolved and will be skipped.
Types ¶
This section is empty.