fix(api): v3 resource mixin required created_at and updated_at#4295
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR systematically migrates timestamp field handling across the API specification and implementation. Timestamp fields ( ChangesAPI Specification Timestamp & Extension Updates
Go Handler Timestamp Type Alignment
Sequence DiagramsequenceDiagram
participant Spec as API Spec<br/>(TypeScript)
participant Handler as Go Handler<br/>(Conversion)
participant API as API Response<br/>(v3)
Spec->>Spec: Make created_at<br/>required field
Spec->>Spec: Update extension<br/>PrivateExtension →<br/>InternalExtension
Handler->>Handler: Remove lo.ToPtr()<br/>for timestamps
Handler->>Handler: Replace pointer<br/>conversion helper
Handler->>API: Assign time.Time<br/>directly (not *time.Time)
API-->>Handler: ✓ Receive scalar<br/>timestamp values
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Bug Fixes
New Features