package
Version:
v0.21.0
Opens a new window with list of versions in this module.
Published: May 10, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Combine combines openapi specs into one and saves to out path.
specs is a spec id-fs path pair.
type API struct {
ID string `json:"-"`
URL string `json:"url"`
OperationIDs OperationIDs `json:"operationIds"`
Dereference struct {
Circular string `json:"circular"`
} `json:"dereference"`
}
type Config struct {
Swagger string `json:"swagger"`
Info Info `json:"info"`
APIs []API `json:"apis"`
}
Config represent swagger-combine config.
AddSpec adds a new OpenAPI spec to Config by path in the fs and unique id of spec.
type Info struct {
Title string `json:"title"`
Name string `json:"name"`
Description string `json:"description"`
}
type OperationIDs struct {
Rename map[string]string `json:"rename"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.