Skip to content

Conversation

@sanil-shrestha
Copy link

synapse-api-rest-imperative

  • Add @Valid annotation to the BaseReadMonoImperativeRestController class

@sanil-shrestha sanil-shrestha requested a review from a team as a code owner August 28, 2025 15:08
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


sshre31 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

})
@PostMapping(INQUIRY_RESULTS)
public ResponseEntity<O> read(@RequestHeader HttpHeaders headers, @RequestBody I serviceRequest) {
public ResponseEntity<O> read(@RequestHeader HttpHeaders headers, @RequestBody @Valid I serviceRequest) {
Copy link
Collaborator

@adgonz90 adgonz90 Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validation was moved to Service level.
why is this coming up?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image This is what we were getting when @Valid annotation was not there in controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants