Skip to content

Strengthen contact create validation contract#48

Open
yw7148 wants to merge 2 commits into
mainfrom
task/issue/40
Open

Strengthen contact create validation contract#48
yw7148 wants to merge 2 commits into
mainfrom
task/issue/40

Conversation

@yw7148
Copy link
Copy Markdown
Owner

@yw7148 yw7148 commented May 18, 2026

Summary

  • Add OpenAPI validation constraints and a 400 error response schema for contact creation.
  • Return a consistent JSON validation error for invalid request bodies.
  • Make contact submission/use case boundaries non-null inside the service layer.
  • Cover blank name, invalid email, and too-long message API cases.

Closes #40

Verification

  • ./gradlew test --tests me.youngwon.portfolio.contact.application.ContactCommandServiceTests --tests me.youngwon.portfolio.api.PortfolioRestApiControllerTests openApiValidate
  • ./gradlew test openApiValidate

@yw7148 yw7148 self-assigned this May 18, 2026
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.

Contact 생성 API 입력 검증과 에러 응답 계약 강화

1 participant