Documentation ¶
Index ¶
- func FilterSpecByPaths(sp *spec.Swagger, keepPathPrefixes []string)
- func FilterSpecByPathsWithoutSideEffects(sp *spec.Swagger, keepPathPrefixes []string) *spec.Swagger
- func MergeSpecs(dest, source *spec.Swagger) error
- func MergeSpecsFailOnDefinitionConflict(dest, source *spec.Swagger) error
- func MergeSpecsIgnorePathConflictDeprecated(dest, source *spec.Swagger) error
- func MergeSpecsIgnorePathConflictRenamingDefinitionsAndParameters(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 FilterSpecByPathsWithoutSideEffects ¶
FilterSpecByPathsWithoutSideEffects 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. It does not modify the input, but the output shares data structures with the input.
func MergeSpecs ¶
MergeSpecs copies paths, definitions and parameters from source to dest, rename definitions if needed. It will fail on path conflicts.
The destination is mutated, the source is not.
func MergeSpecsFailOnDefinitionConflict ¶
MergeSpecsFailOnDefinitionConflict is different from MergeSpecs as it fails if there is a definition or parameter conflict.
func MergeSpecsIgnorePathConflictDeprecated ¶
MergeSpecsIgnorePathConflictDeprecated is the same as MergeSpecs except it will ignore any path conflicts by keeping the paths of destination. It will rename definition and parameter conflicts.
func MergeSpecsIgnorePathConflictRenamingDefinitionsAndParameters ¶
MergeSpecsIgnorePathConflictRenamingDefinitionsAndParameters is the same as MergeSpecs except it will ignore any path conflicts by keeping the paths of destination. It will rename definition and parameter conflicts.
Types ¶
This section is empty.