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

Backend Validation Messages: Customization and interoperability with host projects #79

Open
fabioformosa opened this issue Oct 29, 2022 · 1 comment

Comments

@fabioformosa
Copy link
Owner

At the moment, in case of validation errors, a bad request code is returned and a default error message in the response body.
It's possible to customize the error response body. Take care that the customization doesn't override the customization applied by the project which imports quartz-manager (host project)

@fabioformosa
Copy link
Owner Author

Currently the api caller gets

"message": "Validation failed for object='simpleTriggerInputDTO'. Error count: 1",
  "errors": [
    {
      "codes": [
        "ValidRepetition.simpleTriggerInputDTO",
        "ValidRepetition"
      ],
      "arguments": [
        {
          "codes": [
            "simpleTriggerInputDTO.",
            ""
          ],
          "arguments": null,
          "defaultMessage": "",
          "code": ""
        }
      ],
      "defaultMessage": "Invalid repetition values",
      "objectName": "simpleTriggerInputDTO",
      "code": "ValidRepetition"
    }
  ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant