Skip to content

put validation for "(default)" in Inputs #15983

@romani

Description

@romani

else if (value.startsWith("(default)")) {
final String defaultValue = value.substring(value.indexOf(')') + 1);
if (NULL_STRING.equals(defaultValue)) {
inputConfigBuilder.addDefaultProperty(key, null);
}
else {
inputConfigBuilder.addDefaultProperty(key, defaultValue);
}
}

we did not have time to make validation for default to match actual default at the moment we did migration to BDD style for Inputs.
now all migrations are done, so time to improve declaration of default to match actual default.

noticed at: #15957 (comment)

Required: in referenced code try to get default value from Check instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions