mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 04:20:17 +00:00
Added tags to what-changed
This commit is contained in:
@@ -14,6 +14,14 @@ type ExternalDocChanges struct {
|
||||
ExtensionChanges *ExtensionChanges
|
||||
}
|
||||
|
||||
func (e *ExternalDocChanges) TotalChanges() int {
|
||||
c := len(e.Changes)
|
||||
if e.ExtensionChanges != nil {
|
||||
c += len(e.ExtensionChanges.Changes)
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
func CompareExternalDocs(l, r *lowbase.ExternalDoc) *ExternalDocChanges {
|
||||
var changes []*Change
|
||||
changeType := 0
|
||||
|
||||
Reference in New Issue
Block a user