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

Commit

Permalink
change: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtalk committed Dec 7, 2021
1 parent bf7e331 commit 17566d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const (
httpPATCH string = "PATCH"
)

// TConfig represents config data structure for testcase.
// Each testcase should contain one config part.
type TConfig struct {
Name string `json:"name" yaml:"name"` // required
Verify bool `json:"verify,omitempty" yaml:"verify,omitempty"`
Expand All @@ -20,6 +22,8 @@ type TConfig struct {
Weight int `json:"weight,omitempty" yaml:"weight,omitempty"`
}

// Request represents HTTP request data structure.
// This is used for teststep.
type Request struct {
Method string `json:"method" yaml:"method"` // required
URL string `json:"url" yaml:"url"` // required
Expand All @@ -32,6 +36,7 @@ type Request struct {
Verify bool `json:"verify,omitempty" yaml:"verify,omitempty"`
}

// Validator represents validator for one HTTP response.
type Validator struct {
Check string `json:"check" yaml:"check"` // get value with jmespath
Assert string `json:"assert" yaml:"assert"`
Expand Down

0 comments on commit 17566d3

Please sign in to comment.