Starting work on oAuth Flows.

This commit is contained in:
Dave Shanley
2022-08-06 18:40:23 -04:00
parent 95e3cd9604
commit e8bb52bf3d
4 changed files with 61 additions and 28 deletions

View File

@@ -214,4 +214,10 @@ func TestCreateDocument_Paths(t *testing.T) {
assert.Len(t, links.Value, 2)
assert.Equal(t, "locateBurger", okCode.Value.FindLink("LocateBurger").Value.OperationId.Value)
locateBurger := okCode.Value.FindLink("LocateBurger").Value
burgerIdParam := locateBurger.FindParameter("burgerId")
assert.NotNil(t, burgerIdParam)
assert.Equal(t, "$response.body#/id", burgerIdParam.Value)
}