Documentation
¶
Overview ¶
Package compare implements the default OpenAPI change-detector plugin.
Index ¶
Constants ¶
const StabilityExtension = "x-stability-level"
StabilityExtension marks an operation's stability. Changes to an operation at an unstable level are never breaking.
Variables ¶
var UnstableLevels = []string{"draft", "alpha"}
UnstableLevels are the x-stability-level values whose operations may change without a breaking change.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct{}
Plugin is the default OpenAPI change detector.
func (Plugin) Compare ¶
func (Plugin) Compare(input contract.CompareInput) (contract.CompareOutput, error)
Compare detects breaking and non-breaking changes between two OpenAPI documents.