Documentation ¶
Index ¶
- func CloneSpec(source *spec.Swagger) (*spec.Swagger, error)
- func FilterSpecByPaths(sp *spec.Swagger, keepPathPrefixes []string)
- func MergeSpecs(dest, source *spec.Swagger) error
- func MergeSpecsFailOnDefinitionConflict(dest, source *spec.Swagger) error
- func MergeSpecsIgnorePathConflict(dest, source *spec.Swagger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterSpecByPaths ¶
FilterSpecByPaths removes unnecessary paths and definitions used by those paths. i.e. if a Path removed by this function, all definitions used by it and not used anywhere else will also be removed.
func MergeSpecs ¶
MergeSpecs copies paths and definitions from source to dest, rename definitions if needed. dest will be mutated, and source will not be changed. It will fail on path conflicts.
func MergeSpecsFailOnDefinitionConflict ¶
MergeSpecsFailOnDefinitionConflict is differ from MergeSpecs as it fails if there is a definition conflict.
func MergeSpecsIgnorePathConflict ¶
MergeSpecsIgnorePathConflict is the same as MergeSpecs except it will ignore any path conflicts by keeping the paths of destination. It will rename definition conflicts.
Types ¶
This section is empty.