Skip to content

Allow dash '-' as placeholder in controlled vocabulary lists#50

Merged
astrofrog merged 1 commit into
mainfrom
fix-cv-dash-placeholder
Mar 11, 2026
Merged

Allow dash '-' as placeholder in controlled vocabulary lists#50
astrofrog merged 1 commit into
mainfrom
fix-cv-dash-placeholder

Conversation

@astrofrog
Copy link
Copy Markdown
Owner

The AVM specification allows using a dash '-' as a placeholder for unknown values in ordered lists with controlled vocabulary (e.g., Spectral.ColorAssignment, Spectral.Band). Previously, we rejected these values with a controlled vocabulary error.

This fix treats '-' as a special placeholder value that bypasses the controlled vocabulary check, consistent with how None values are already handled.

Fixes #40

The AVM specification allows using a dash '-' as a placeholder for
unknown values in ordered lists with controlled vocabulary (e.g.,
Spectral.ColorAssignment, Spectral.Band). Previously, pyavm would
reject these values with a controlled vocabulary error.

This fix treats '-' as a special placeholder value that bypasses
the controlled vocabulary check, consistent with how None values
are already handled.

Fixes #40
@astrofrog astrofrog merged commit 3633810 into main Mar 11, 2026
24 checks passed
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.

controlled vocabulary error

1 participant