Skip to content

Conversation

@hemanth299
Copy link

@hemanth299 hemanth299 commented Aug 23, 2025

This PR adds missing validation annotations to align model constraints with database schemas and the OpenAPI specification.

NamedEntity.java: Added @NotEmpty to the name field.
Pet.java: Added @NotNull to the birthDate field.
Visit.java: Added @NotNull to the date field.

@vfedoriv
Copy link
Collaborator

Doesn't look like it covers all issues that @arey noticed previously in his comment #147 (comment)
The PR comment doesn't correspond to the changes actually made in the commit (AI-generated?)

@hemanth299 hemanth299 changed the title Fix: Add validation constraints to model classes (#147) Fix: Align model validation with database schemas and OpenAPI (#147) Aug 23, 2025
@hemanth299
Copy link
Author

Doesn't look like it covers all issues that @arey noticed previously in his comment #147 (comment) The PR comment doesn't correspond to the changes actually made in the commit (AI-generated?)

Thanks for the feedback! I've pushed the requested changes to include the validation for Visit.java and updated the PR description. Let me know if anything else is needed.

@vfedoriv
Copy link
Collaborator

hmm... looks like I'm talking with LLM... /人◕ __ ◕人\

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.

2 participants