Skip to content

feat: the date-time-ms format, a time in unix milliseconds - #33

Merged
MarkRosemaker merged 1 commit into
masterfrom
feat/date-time-ms
Nov 25, 2026
Merged

MarkRosemaker merged 1 commit into
masterfrom
feat/date-time-ms

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Owner

This is part of openapi-codegen's "Unix times in milliseconds" roadmap entry. date-time-ms is a date-time written as an integer of Unix milliseconds, such as 1795464914000. go-api-libs/ibkr's trades (trade_time_r) and portfolio summary (timestamp) send times this way.

Like date-basic, it isn't one of JSON Schema's formats, but some APIs write a time this way. openapi-codegen is to read it as a time.Time.

Changes

  • FormatDateTimeMs and its doc comment, and its place in the known formats.
  • Valid on an integer only: date-time-ms on a string is reported as only valid for integer type.
  • Tests: a TestSchema_Validate case for that error, the format in TestFormat_Validate's list, and a seen property using it in testdata/openapi.json.

make ready passes.


Generated by Claude Code

date-time-ms is a date-time written as an integer of unix milliseconds, as
go-api-libs/ibkr's trades and portfolio summary send it. Like date-basic, it
is not one of JSON Schema's formats; it is valid on an integer only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
@MarkRosemaker
MarkRosemaker merged commit 33a241a into master Nov 25, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the feat/date-time-ms branch November 25, 2026 19:16
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