Skip to content

Fix Added Birth Date Validation to prevent future dates #310#316

Open
GiteshPeswani wants to merge 1 commit intospring-petclinic:masterfrom
GiteshPeswani:fix-pet-birthdate-validation
Open

Fix Added Birth Date Validation to prevent future dates #310#316
GiteshPeswani wants to merge 1 commit intospring-petclinic:masterfrom
GiteshPeswani:fix-pet-birthdate-validation

Conversation

@GiteshPeswani
Copy link
Copy Markdown

"I have implemented backend validation to ensure that a pet's birth date cannot be set in the future.

Added @PastOrPresent annotation to the birthDate field in PetDto.

Verified the fix using Postman (received 400 Bad Request for future dates).

Closes #310"

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.

PUT /owners/{ownerId}/pets/{petId} allows updating pets that do not belong to the specified owner

1 participant