@kie-tools/form-generation-tool
: Doesn't set a default value on array
field types
#1313
Labels
@kie-tools/form-generation-tool
: Doesn't set a default value on array
field types
#1313
When generating the binding expression to bind the model data into the form state, the generated tool sets a default value for each input. but It doesn't do so for
array
data types leaving the propertynull
.This could cause problems in the runtime when submitting the payload with the null array.
Steps to reproduce:
jbpm-compact-architecture
example (mvn clean install
) to generate the json schemas.form-generation-cli
to generate forms (it doesn't matter the type)jbpm-compact-architecture
in dev mode (mvn clean compile quarkus:dev
orpnpm -F @kie-tools-examples/jbpm-compact-architecture-example quarkus:dev
)Process Definitions
tab. After submit you'll get see the error dialog appearThe text was updated successfully, but these errors were encountered: