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

Respect declared type of data type rules #1478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

msujew
Copy link
Contributor

@msujew msujew commented Apr 29, 2024

Closes #1256

In the issue, the MyDataType rule infers a number type (due to its content) instead of the declared string type. This change first checks whether the declared type can be assigned directly to the expected type. Only if that fails will the validation attempt to use the computed type for checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Types related issue validation Validation related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading type compatibility validation error
1 participant