Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Diff ¶
type Diff struct {
OpenAPI []OpenAPIDiff
}
func (*Diff) BreakingChangeCount ¶
func (*Diff) MinorChangeCount ¶
func (*Diff) PatchChangeCount ¶
type OpenAPIDiff ¶
type OpenAPIDiff struct {
ID string `json:"id"`
Text string `json:"text"`
Level int `json:"level"`
Operation string `json:"operation"`
OperationID string `json:"operationId"`
Path string `json:"path"`
Source string `json:"source"`
}
func DiffOpenAPI ¶
func DiffOpenAPI(file1 string, file2 string) ([]OpenAPIDiff, error)
DiffOpenAPI compares two OAS files and returns the differences, calls the oasdiff cli tool to retrieve the json
func (*OpenAPIDiff) IsBreakingChange ¶
func (oad *OpenAPIDiff) IsBreakingChange() bool
func (*OpenAPIDiff) IsMinorChange ¶
func (oad *OpenAPIDiff) IsMinorChange() bool
func (*OpenAPIDiff) IsPatchChange ¶
func (oad *OpenAPIDiff) IsPatchChange() bool
func (*OpenAPIDiff) LevelAsString ¶
func (oad *OpenAPIDiff) LevelAsString() string
Click to show internal directories.
Click to hide internal directories.