Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format informative errors for workflow schema validation #4028

Merged
merged 1 commit into from
Sep 23, 2019

Commits on Sep 21, 2019

  1. Format informative errors for workflow schema validation

    This is a hack at formatting errors for workflow schema issues.
    
    The new errors are formatted like:
    
    ```
    Error on workflow entry [:workflows, 0, :label]
          label must be filled
          Got:
    Error on workflow entry [:workflows, 0, :description]
          description must be filled
          Got:
    Input was:
          {:workflows=>[{:name=>"ulra_submission", :label=>"", :description=>"",
          :actions=>[{:name=>"approve", :from_states=>[{:names=>["under_review"],
          :roles=>["ulra_reviewing"]}], :transition_to=>"reviewed"}]}]}
    ```
    
    Fixes #267.
    Tom Johnson committed Sep 21, 2019
    Configuration menu
    Copy the full SHA
    4a0b791 View commit details
    Browse the repository at this point in the history