From 23602902bea8ef572d3bfdca575e4b28f36b804a Mon Sep 17 00:00:00 2001 From: debugtalk Date: Tue, 7 Dec 2021 18:37:42 +0800 Subject: [PATCH] docs: add comments --- extract.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extract.go b/extract.go index 56bc7b2c..40080e31 100644 --- a/extract.go +++ b/extract.go @@ -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,