Skip to content

Commit

Permalink
Add 'expected' object for use in hooks (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Davis authored and ddelnano committed Aug 21, 2017
1 parent 788fd17 commit 2d09c7c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ type Transaction struct {
URI string `json:"uri,omitempty"`
Method string `json:"method,omitempty"`
} `json:"request,omitempty"`
Expected *json.RawMessage `json:"expected,omitempty"`
Real *struct {
Expected *struct {
StatusCode string `json:"statusCode,omitempty"`
Body string `json:"body,omitempty"`
Headers map[string]interface{} `json:"headers,omitempty"`
Schema *json.RawMessage `json:"schema,omitempty"`
} `json:"expected,omitempty"`
Real *struct {
Body string `json:"body"`
Headers map[string]interface{} `json:"headers"`
StatusCode int `json:"statusCode"`
Expand Down

0 comments on commit 2d09c7c

Please sign in to comment.