Skip to content

Improve InvokeValidValidator and ValidListValidator used by RESTful services #1975

Closed
@vrindanayak

Description

  • For classes using @InvokeValidate, move logRequest() in validate() method, so that if class level validation fails, the request is logged for better debugging.
  • LOG.warn Exception caught in InvokeValidateValidator and ValidListValidator.
  • Refactor ValidListValidator.isValid() to be more concise. Add missing exception handling.
  • Return false if InvocationTargetException is caught in InvokeValidateValidator.
  • Use specified query parameter name as corresponding class variable name, so that response payload of validation failures corresponds to the query parameter that was sent in the request. for eg. dcmQueueName as dcmQueueName instead of queueName.

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions