Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7617

Increase the the schema validation error message assertivity

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • None
    • 1.24.0.Final
    • None
    • False
    • None
    • False
    • ---
    • ---

      The response message is too generic if a given workflow input has more than one validation. Users won't have a clue where to start looking:

      
      {"failedNodeId":"_jbpm-unique-1","id":"6c55cb30-ee9e-41d1-97e9-89e38d68cca6","message":"org.everit.json.schema.ValidationException - #: 2 schema violations found"}
      
      

      "2 schema violations found" is too poorly; there's no clue where to look.

      To reproduce, you can use this project:
      https://github.com/ricardozanini/kogito-serverless-loanbroker/tree/main/loanbroker-flow

      Just submit an input with two validation errors.

            ftirados Francisco Javier Tirado Sarti
            rhn-support-zanini Ricardo Zanini Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: