mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 12:37:48 +00:00
Smashing bugs in models by validating changes.
Who would have thought the what-changed tool would be the key to ensuring accuracy on the models.
This commit is contained in:
@@ -449,7 +449,8 @@ func TestCreateDocument_Components_Links(t *testing.T) {
|
||||
|
||||
func TestCreateDocument_Doc_Security(t *testing.T) {
|
||||
initTest()
|
||||
oAuth := doc.FindSecurityRequirement("OAuthScheme")
|
||||
d := doc
|
||||
oAuth := d.FindSecurityRequirement("OAuthScheme")
|
||||
assert.Len(t, oAuth, 2)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user