docs: add comments

This commit is contained in:
debugtalk
2021-12-07 18:37:42 +08:00
parent 648b6c6616
commit 23602902be

View File

@@ -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,