Skip to content

feat: validate decorator rules#232

Merged
yuchem2 merged 2 commits into
developfrom
CARGO-418
Jun 14, 2026
Merged

feat: validate decorator rules#232
yuchem2 merged 2 commits into
developfrom
CARGO-418

Conversation

@yuchem2

@yuchem2 yuchem2 commented Jun 11, 2026

Copy link
Copy Markdown
Member

p1에 해당하는 데코레이터 검증 규칙을 추가합니다.

  • description이 없는 sybmol property 거부
  • source 데코레이터 key가 빈 문자열로 들어온 경우 거부
  • @With, @Without의 대상 필드가 없는 경우 거부
  • 배열이 아닌 필드에 @Each를 적용한 경우 거부
  • 배열이 아닌 필드에 @List를 적용한 경우 거부
  • primitive 필드에 @Type를 적용한 경우 거부

yuchem2 added 2 commits June 11, 2026 21:12
- add basis rule and crossfield rules
- add type-helper rules

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

이번 풀리퀘스트는 스키마 검증을 위한 다양한 신규 규칙(기본 규칙, 교차 필드 참조 규칙, 타입 헬퍼 배치 규칙 및 @each 사용 규칙)과 관련 테스트 코드를 추가합니다. 이를 위해 데코레이터가 실행 인자(args)를 캡처하여 저장하도록 수정되었으며, FieldState 구조에 sourceKey와 siblingFields가 추가되었습니다. 리뷰 피드백에서는 packages/express-cargo/src/rules/crossField.ts 파일 내에서 발생할 수 있는 런타임 에러를 방지하기 위해 applied.args?.[0]과 같이 옵셔널 체이닝을 적용할 것을 권장하고 있습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/express-cargo/src/rules/crossField.ts
@yuchem2 yuchem2 merged commit bd64799 into develop Jun 14, 2026
4 checks passed
@yuchem2 yuchem2 deleted the CARGO-418 branch June 14, 2026 11:55
@yuchem2 yuchem2 self-assigned this Jun 14, 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.

2 participants