refactor(posts): PostSummary/Post 모델 계층 분리 및 Zod 스키마 단일 원천화 - #87
Merged
Conversation
- PostFrontmatter(Zod Schema)에서 파생된 PostSummary 모델 정의로 단일 원천(Single Source of Truth) 확립
- Post 타입을 PostSummary & { readonly content: string } 구조로 계층화
- PostCard, PostMeta 등 뷰 컴포넌트의 Props 타입을 PostSummary로 일반화하여 결합도 완화
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PostFrontmatter(Zod Schema)에서 파생된PostSummary모델 정의로 단일 원천(Single Source of Truth) 확립Post타입을PostSummary & { readonly content: string }구조로 계층화하여 본문과 메타데이터 의존성 분리PostCard,PostMeta등 뷰 컴포넌트의 Props 타입을PostSummary로 일반화하여 결합도 완화