-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Adding output/template context to open api spec. #549
✨ Adding output/template context to open api spec. #549
Conversation
@@ -147,7 +151,7 @@ func (p *builtinServiceClient) Evaluate(ctx context.Context, cap string, conditi | |||
if query == nil || err != nil { | |||
return response, fmt.Errorf("could not parse provided xpath query '%s': %v", cond.XML.XPath, err) | |||
} | |||
xmlFiles, err := findXMLFiles(p.config.Location, cond.XMLPublicID.Filepaths) | |||
xmlFiles, err := findXMLFiles(p.config.Location, cond.XML.Filepaths) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug that I found while testing
@@ -29,7 +29,7 @@ | |||
or: | |||
- builtin.xml: | |||
xpath: "//dependencies/dependency" | |||
filepaths: "{{poms.filepaths}}" | |||
filepaths: "{{poms.extras.filepaths}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating to extras to make sure that the TemplateContext works, we should maybe have another test that tests the file paths from incidents are working.
* added new helper to add this to capability * used new helper in builtin where we had template context * updated docs to make it more clear. Signed-off-by: Shawn Hurley <shawn@hurley.page>
9f3bc0c
to
03e92bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixes #527