Skip to content

Commit

Permalink
ADD dump info.
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Jan 4, 2024
1 parent 5e8d225 commit 233c9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actionruntime/restapi/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ func (r *RESTAPIConnector) Run(resourceOptions map[string]interface{}, actionOpt
fmt.Printf("[DUMP] restapi r.Action: %+v\n", r.Action)

b := r.Action.ReflectBodyToRaw()
fmt.Printf("[DUMP] b := r.Action.ReflectBodyToRaw(): %+v\n", b)

rawBody, contentType := b.UnmarshalRawBody()
fmt.Printf("[DUMP] restapi request contentType: %+v\n", contentType)
client.OnBeforeRequest(
Expand Down
1 change: 1 addition & 0 deletions src/actionruntime/restapi/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type RecordBody struct {
func (t *RESTTemplate) ReflectBodyToRaw() *RawBody {
rbd := &RawBody{}
rb, _ := t.Body.(map[string]interface{})
fmt.Printf("[DUMP] ReflectBodyToRaw().rb: %+v\n", rb)
for k, v := range rb {
switch k {
case "type":
Expand Down

0 comments on commit 233c9dd

Please sign in to comment.