Working through components what-changed code.

Moved comparison function for map checking to be async, removed the untyped variation as it's no longer required. Getting prepared for tests
This commit is contained in:
Dave Shanley
2022-11-14 16:57:14 -05:00
parent 1abc25a923
commit f66c77ccb5
5 changed files with 231 additions and 78 deletions

View File

@@ -44,6 +44,14 @@ func (ss *SecuritySchemeChanges) TotalBreakingChanges() int {
return c
}
func CompareSecuritySchemesV2(l, r *v2.SecurityScheme) *SecuritySchemeChanges {
return CompareSecuritySchemes(l, r)
}
func CompareSecuritySchemesV3(l, r *v3.SecurityScheme) *SecuritySchemeChanges {
return CompareSecuritySchemes(l, r)
}
func CompareSecuritySchemes(l, r any) *SecuritySchemeChanges {
var props []*PropertyCheck