Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Include *(Datum|Value) in SchemaValidationError #3750

Merged
merged 8 commits into from
Jan 6, 2025
Merged

Conversation

dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Jan 5, 2025

Fixes #2913

Examples

import altair as alt

>>> alt.Chart().mark_point().encode(x=alt.datum(1, wrong_argument=1))
SchemaValidationError: `XDatum` has no parameter named 'wrong_argument'

Existing parameter names are:
datum          impute   title   
axis           scale    type    
bandPosition   stack            

See the help for `XDatum` to read the full description of these parameters
import altair as alt

>>> alt.Chart().mark_point().encode(color=alt.value("red", predicate=True))
SchemaValidationError: `ColorValue` has no parameter named 'predicate'

Existing parameter names are:
value   condition   

See the help for `ColorValue` to read the full description of these parameters

Tasks

Future Work

@dangotbanned dangotbanned marked this pull request as ready for review January 6, 2025 17:27
@dangotbanned dangotbanned changed the title fix: Include *(Datum|Value) class in SchemaValidationError fix: Include *(Datum|Value) in SchemaValidationError Jan 6, 2025
@dangotbanned dangotbanned merged commit f0de7f2 into main Jan 6, 2025
28 checks passed
@dangotbanned dangotbanned deleted the fix-2913 branch January 6, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alt.datum and alt.value generates incorrect error messages
1 participant