Skip to content

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

Merged
dangotbanned merged 8 commits intomainfrom
fix-2913
Jan 6, 2025
Merged

fix: Include *(Datum|Value) in SchemaValidationError#3750
dangotbanned merged 8 commits intomainfrom
fix-2913

Conversation

@dangotbanned
Copy link
Copy Markdown
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
@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