components are in,

this should actually be the full model, the whole graph is in - now to optimize full model and check for circular deps.
then, it's time to move back in history and rebuild the swagger model.
This commit is contained in:
Dave Shanley
2022-08-21 12:05:16 -04:00
parent 5a2f3ca924
commit 00267c91b9
11 changed files with 374 additions and 65 deletions

View File

@@ -127,7 +127,7 @@ func TestNewDocument_Components(t *testing.T) {
assert.Equal(t, "locateBurger", h.Components.Links["LocateBurger"].OperationId)
assert.Equal(t, "$response.body#/id", h.Components.Links["LocateBurger"].Parameters["burgerId"])
assert.Len(t, h.Components.Callbacks, 1)
//assert.Equal(t, "Callback payload",
// h.Components.Callbacks["BurgerCallback"].Expression["{$request.query.queryUrl}"].Post.RequestBody.Description)
assert.Equal(t, "Callback payload",
h.Components.Callbacks["BurgerCallback"].Expression["{$request.query.queryUrl}"].Post.RequestBody.Description)
}