Skip to content
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

Merged

Conversation

shawn-hurley
Copy link
Contributor

  • Added new helper to add this to the capability
  • used new helper in builtin where we had template context
  • I updated the docs to make them clearer.

fixes #527

@shawn-hurley shawn-hurley changed the title Adding output/template context to open api spec. ✨ Adding output/template context to open api spec. Mar 22, 2024
@@ -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)
Copy link
Contributor Author

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}}"
Copy link
Contributor Author

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>
@shawn-hurley shawn-hurley force-pushed the feature/add-output-provider-caps branch from 9f3bc0c to 03e92bf Compare April 3, 2024 20:45
Copy link
Member

@aufi aufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

builtin, java output schema should be added
3 participants