Skip to content

refactor: replace interface{} with any and use millisecond time formatting#733

Merged
developerkunal merged 1 commit intomainfrom
fern-bot/2026-03-24T05-12Z
Mar 24, 2026
Merged

refactor: replace interface{} with any and use millisecond time formatting#733
developerkunal merged 1 commit intomainfrom
fern-bot/2026-03-24T05-12Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api bot commented Mar 24, 2026

🔧 Changes

Auto-generated SDK regeneration to match the latest Auth0 API definition. Key changes:

  • interface{}any: Replace all interface{} occurrences with the any alias across the entire SDK (actions, branding, clients, errors, event streams, flows, forms, requests, resource servers, types, users). This is a cosmetic/idiomatic change — any is a built-in alias for interface{} since Go 1.18 and is fully source-compatible.
  • Millisecond time formatting: Add RFC3339Milli constant ("2006-01-02T15:04:05.000Z07:00") and use it for query parameter time serialization instead of time.RFC3339, ensuring the fixed .000 millisecond suffix many APIs expect

⚠️ Breaking Changes

1. Time query parameter formatting — RFC 3339 → RFC 3339 with milliseconds

Query parameters containing time.Time values now serialize with millisecond precision (.000) instead of omitting fractional seconds.

Before:

dateTime=1994-03-16T12%3A34%3A56Z

After:

dateTime=1994-03-16T12%3A34%3A56.000Z

📚 References

Auto-generated via Fern SDK regeneration.

🔬 Testing

All modified types include updated auto-generated tests. Query encoding test updated to expect millisecond-precision timestamps.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 52.77778% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.75%. Comparing base (5a634d8) to head (d592e0f).

Files with missing lines Patch % Lines
management/errors.go 0.00% 11 Missing ⚠️
management/flows.go 70.00% 3 Missing ⚠️
management/branding.go 50.00% 2 Missing ⚠️
management/users.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #733   +/-   ##
=======================================
  Coverage   87.75%   87.75%           
=======================================
  Files         315      315           
  Lines      137445   137445           
=======================================
  Hits       120615   120615           
  Misses      12332    12332           
  Partials     4498     4498           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@developerkunal developerkunal changed the title 🌿 Fern Regeneration -- March 24, 2026 refactor: replace interface{} with any and use millisecond time formatting Mar 24, 2026
Copy link
Copy Markdown
Contributor

@developerkunal developerkunal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@developerkunal developerkunal merged commit 5f0cdb8 into main Mar 24, 2026
6 checks passed
@developerkunal developerkunal deleted the fern-bot/2026-03-24T05-12Z branch March 24, 2026 05:21
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