BLOG-126 Post management (list and create) #139
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "BLOG-126_post_management"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Package Changes
No response
Screenshots
Reference
Resolve #126.
Checklist
/improve
PR Code Suggestions ✨
Fix DTO schema contradiction
The
preview_image_url
field is defined asOption
, indicating it can be null orabsent. However, it's also annotated with
#[schema(required)]
, which creates acontradiction in the schema definition. To align with the nullable type, remove the
#[schema(required)]
attribute.backend/feature/post/src/adapter/delivery/create_post_request_dto.rs [15-16]
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies a contradiction between the
Option<String>
type and the#[schema(required)]
attribute. Fixing this inconsistency is crucial for accurate schema generation and data validation.