Issues
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"
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.
Reproduction
-
Add a parameter to a step template
-
View the JSON via the API and copy the relevant portion as shown:
-
Attempt to PUT the JSON via SwaggerUI (fail):
-
Attempt the same PUT, but change
"DefaultValue": "",to"DefaultValue": null,(success):
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