Compare commits

..

1 Commits

Author SHA1 Message Date
Serghei Mihai d4e1d9c0ac wscalls: unflatten payload when calling webservice (#66916)
gitea/wcs/pipeline/head This commit looks good Details
2024-03-22 11:05:18 +01:00
2 changed files with 8 additions and 8 deletions

View File

@ -308,10 +308,10 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
'The / in parameter name allows to generate complex objects. '
'Thus a parameter named "element/child" containing "value" will generate the payload '
'"element": {"child": "value"}. If the subkey, i.e. "child", is an integer it will '
'become a list index and two elements "element/0", "element/1" containing "value1" '
'and "value2" will generate the payload "element": ["value1", "value2"]. '
'It is possible to combine the two types, for example "element/0/key1" to generate '
'a list of objects.'
'become a list index and two elements "element/0", "element/1" (indexes should '
' start from zero) containing "value1" and "value2" will generate the payload '
'"element": ["value1", "value2"]. It is possible to combine the two types, for '
'example "element/0/key1" to generate a list of objects.'
),
)

View File

@ -499,10 +499,10 @@ class WsCallRequestWidget(CompositeWidget):
'The / in parameter name allows to generate complex objects. '
'Thus a parameter named "element/child" containing "value" will generate the payload '
'"element": {"child": "value"}. If the subkey, i.e. "child", is an integer it will '
'become a list index and two elements "element/0", "element/1" containing "value1" '
'and "value2" will generate the payload "element": ["value1", "value2"]. '
'It is possible to combine the two types, for example "element/0/key1" to generate '
'a list of objects.'
'become a list index and two elements "element/0", "element/1" (indexes should '
' start from zero) containing "value1" and "value2" will generate the payload '
'"element": ["value1", "value2"]. It is possible to combine the two types, for '
'example "element/0/key1" to generate a list of objects.'
),
)