Skip to content

Commit eeac7cb

Browse files
committed
Merge branch 'fix-custom-blocks-root' into 'develop'
Add encoding of custom blocks on deprecated endpoint. See merge request programaker-project/programaker-core!198
2 parents 7b3a4be + 9369e26 commit eeac7cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

backend/apps/automate_rest_api/src/automate_rest_api_custom_blocks_root.erl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,11 @@ encode_argument(#service_port_block_dynamic_argument{ type=Type
152152
}) ->
153153
#{ <<"type">> => Type
154154
, <<"callback">> => Callback
155+
};
156+
157+
encode_argument(#service_port_block_collection_argument{ name=Collection
158+
}) ->
159+
#{ type => string
160+
, callback => Collection
161+
, collection => Collection
155162
}.

0 commit comments

Comments
 (0)