Skip to content
Snippets Groups Projects
Commit 0fc23e86 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'fix/PRXS-1718-AddKeysToActionStructs' into 'master'

Исправлена ошибка при вызове действия "HTTP-действие с форматом ответа 'application/json'" в тестовом расширении, вызванная отсутствием json-тэгов у полей структур ActionRequest и ActionResponse

See merge request perxis/perxis-go!118
parents 53ca8de3 b9f9a35a
No related branches found
No related tags found
No related merge requests found
...@@ -14,30 +14,30 @@ type ( ...@@ -14,30 +14,30 @@ type (
ResponseFormat = pb.ActionResponse_Format ResponseFormat = pb.ActionResponse_Format
ActionRequest struct { ActionRequest struct {
Extension string Extension string `json:"extension,omitempty"`
Action string Action string `json:"action"`
SpaceID string SpaceID string `json:"space_id,omitempty"`
EnvID string EnvID string `json:"env_id,omitempty"`
CollectionID string CollectionID string `json:"collection_id,omitempty"`
ItemID string ItemID string `json:"item_id,omitempty"`
ItemIDs []string ItemIDs []string `json:"item_ids,omitempty"`
Fields []string Fields []string `json:"fields,omitempty"`
Metadata map[string]string Metadata map[string]string `json:"metadata,omitempty"`
Refs []*references.Reference Refs []*references.Reference `json:"refs,omitempty"`
Params *references.Reference Params *references.Reference `json:"params,omitempty"`
} }
ActionResponse struct { ActionResponse struct {
State ResponseState State ResponseState `json:"state"`
Target ActionTarget Target ActionTarget `json:"target"`
Format ResponseFormat Format ResponseFormat `json:"format"`
Msg string Msg string `json:"msg,omitempty"`
Title string Title string `json:"title,omitempty"`
Image string Image string `json:"image,omitempty"`
Error string Error string `json:"error,omitempty"`
Next []*Action Next []*Action `json:"next,omitempty"`
Metadata map[string]string Metadata map[string]string `json:"metadata,omitempty"`
Refs []*references.Reference Refs []*references.Reference `json:"refs,omitempty"`
} }
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment