Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Diff ¶
type Diff struct {
OpenAPI []OpenAPIDiff
}
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
Click to show internal directories.
Click to hide internal directories.