Skip to content

fix: time format validation only applies to strings#207

Merged
embray merged 1 commit into
asdf-format:mainfrom
embray:time-fixes-3
Jun 24, 2026
Merged

fix: time format validation only applies to strings#207
embray merged 1 commit into
asdf-format:mainfrom
embray:time-fixes-3

Conversation

@embray

@embray embray commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

For values in decimal formats the time format is ambiguous and should not be guessed. Likewise, according the the actual schema, the string formats are only valid in the schema if they are guessable, basically (i.e. 'J2000.0', not just '2000.0', even if format: jyear is specified.

Follow-up to #205 which intended to fix this as well.

For values in decimal formats the time format is ambiguous and should
not be guessed.  Likewise, according the the actual schema, the string
formats are only valid in the schema if they are guessable, basically
(i.e. 'J2000.0', not just '2000.0', even if `format: jyear` is
specified.

Follow-up to asdf-format#205 which intended to fix this as well.
@embray embray merged commit cb5cb22 into asdf-format:main Jun 24, 2026
12 checks passed
@embray embray deleted the time-fixes-3 branch June 24, 2026 12:31
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.

1 participant