Skip to content

refactor(posts): PostSummary/Post 모델 계층 분리 및 Zod 스키마 단일 원천화 - #87

Merged
CoBool merged 1 commit into
mainfrom
refactor/posts-data-layer
Aug 16, 2026
Merged

refactor(posts): PostSummary/Post 모델 계층 분리 및 Zod 스키마 단일 원천화#87
CoBool merged 1 commit into
mainfrom
refactor/posts-data-layer

Conversation

@CoBool

@CoBool CoBool commented Aug 16, 2026

Copy link
Copy Markdown
Owner
  • PostFrontmatter(Zod Schema)에서 파생된 PostSummary 모델 정의로 단일 원천(Single Source of Truth) 확립
  • Post 타입을 PostSummary & { readonly content: string } 구조로 계층화하여 본문과 메타데이터 의존성 분리
  • PostCard, PostMeta 등 뷰 컴포넌트의 Props 타입을 PostSummary로 일반화하여 결합도 완화
  • 기존 모든 테스트(31개 파일 / 219개 테스트) 및 타입체크 통과

- PostFrontmatter(Zod Schema)에서 파생된 PostSummary 모델 정의로 단일 원천(Single Source of Truth) 확립

- Post 타입을 PostSummary & { readonly content: string } 구조로 계층화

- PostCard, PostMeta 등 뷰 컴포넌트의 Props 타입을 PostSummary로 일반화하여 결합도 완화
@CoBool
CoBool merged commit ce9256c into main Aug 16, 2026
1 check passed
@CoBool
CoBool deleted the refactor/posts-data-layer branch August 16, 2026 11:32
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.

1 participant