Skip to content

feat(api-client): Sync P005 - datetime format schema annotations#1325

Open
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P005-datetime-format-annotations
Open

feat(api-client): Sync P005 - datetime format schema annotations#1325
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P005-datetime-format-annotations

Conversation

@yenkins-admin
Copy link
Contributor

Synchronize SDK with gdc-nas datetime format schema annotations for metadata model timestamp fields.
Jira ticket pending (sandbox under maintenance - manual creation required).
Problem P005 - Workflow: https://github.com/gooddata/gdc-nas/actions/runs/22064429506

Summary

This PR tracks the synchronization of P005 changes from gdc-nas that added explicit OpenAPI datetime format schema annotations to createdAt and modifiedAt fields across 8 metadata models.

GDC-NAS Changes

  • Problem: P005
  • Related JIRA: STL-2296
  • Commits: ff5a90d9, 66eb00ce

Affected Entities

  • AnalyticalDashboard
  • AttributeHierarchy
  • Automation
  • DashboardPlugin
  • ExportDefinition
  • MemoryItem
  • Metric
  • VisualizationObject

SDK Implementation

The gooddata-api-client was regenerated from the updated metadata-api OpenAPI spec and now includes:

  • Proper datetime type annotations: (datetime, none_type,)
  • Regex validation patterns: r'[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}'

This resolves a mismatch where the API spec indicated date-time format but the implementation returned strings without format specification.

Verification

✅ All 8 affected model files verified to contain proper datetime patterns
✅ Type annotations correctly reflect nullable datetime fields
✅ No additional SDK code changes required (API client already regenerated)

Notes

  • Changes incorporated through OpenAPI client regeneration
  • Jira ticket requires manual creation (sandbox was under maintenance)
  • See .sync-notes/P005-datetime-format.md for complete details

Synchronize SDK with gdc-nas changes that added explicit OpenAPI
datetime format schema annotations to createdAt/modifiedAt fields
across 8 metadata models (AnalyticalDashboard, AttributeHierarchy,
Automation, DashboardPlugin, ExportDefinition, MemoryItem, Metric,
VisualizationObject).

The gooddata-api-client was regenerated from updated metadata-api
OpenAPI spec and now includes proper datetime type annotations and
regex validation patterns (YYYY-MM-DD HH:MM format) for all affected
entity models.

This resolves a mismatch where the API spec indicated date-time
format but the implementation returned strings without format
specification.

Related: STL-2296, P005

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tychtjan
Copy link

Close please

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