Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
docs: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtalk committed Dec 7, 2021
1 parent b78a753 commit 5204a83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ type stepRequestExtraction struct {
step *TStep
}

// WithJmesPath sets the JMESPath expression to extract from the response.
func (s *stepRequestExtraction) WithJmesPath(jmesPath string, varName string) *stepRequestExtraction {
s.step.Extract[varName] = jmesPath
return s
}

// Validate switches to step validation.
func (s *stepRequestExtraction) Validate() *stepRequestValidation {
return &stepRequestValidation{
step: s.step,
Expand Down

0 comments on commit 5204a83

Please sign in to comment.