Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Action Template Parameters "DefaultValue" is set to an empty string, instead of NULL, when a new parameter is added with no "Default value"

Open donnybell opened this issue 1 year ago • 1 comments

Severity

No response

Version

2024.2.9313

Latest Version

None

What happened?

Action Template Parameters "DefaultValue" is set to an empty string, instead of NULL, when a new parameter is added with no "Default value". This is not a permitted value, according to Swagger. image

Reproduction

  1. Add a parameter to a step template image

  2. View the JSON via the API and copy the relevant portion as shown: image

  3. Attempt to PUT the JSON via SwaggerUI (fail): image

  4. Attempt the same PUT, but change "DefaultValue": "", to "DefaultValue": null, (success): image

image

Error and Stacktrace

Please correct the following validation errors and try again.

  • propKeyParameterserrorindex0errorpropKeyDefaultValueerrorParameter string value must be valid JSON

More Information

No response

Workaround

No response

donnybell avatar Jul 29 '24 17:07 donnybell