kumaradityaraj opened a new pull request, #3367:
URL: https://github.com/apache/incubator-kie-tools/pull/3367

   ---
   Closes - 
[kie-tools#3316](https://github.com/apache/incubator-kie-tools/issues/3316)
   ---
   
   # ๐Ÿš€  Generated inputs are sent only if are touched
   
   ### Issue Summary
   In **sonataflow-deployment-webapp** and other SonataFlow applications, when 
using a JSON schema that includes a boolean property with a default value, the 
generated form does not send the field to the workflow endpoint unless the user 
explicitly modifies it.
   
   
   ---
   
   ### Fix: By default the boolean value is false and if the checkbox is 
checked the value is true.
   
   ---
   
   ## ๐Ÿงช How to Test
   Follow these steps to build and run the webapp locally:
   ```bash
   # From the project root
   cd incubator-kie-tools/
   pnpm -r -F sonataflow-deployment-webapp... build:dev
   cd packages/sonataflow-deployment-webapp
   pnpm start:dev-webapp
   Navigate to - http://localhost:9023/#/workflows/service
   
   
   #From 
[[sonataflow-deployment-webapp-consumer](https://github.com/fantonangeli/sonataflow-deployment-webapp-consumer)]
   mvn clean package quarkus:dev
   ```
   
   ```bash
   Change the schema as follows  or you can use your own schema:-
   {
       "$schema": "http://json-schema.org/draft-04/schema#";,
       "type": "object",
       "properties": {
         "boolField": {
           "type": "boolean",
           "default": true
         }
       },
       "required": [
           "boolField"
       ]
   }
   ```
   ---
   ## Preview
   
   
https://github.com/user-attachments/assets/4890e2ad-9e43-43d5-af48-71211140d5a0
   
   
   ---
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to