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

🐛 Fixing model datatype checks order #418

Conversation

sschleemilch
Copy link
Collaborator

Assuring a certain order of the data model validation functions.

Some data model checks are calling Datatypes.is_datatype() which can throw an exception when we have an unsupported datatype. Since @model_validator("after") do not have an order we need to assure that checks that are relying on datatypes run after the base check.

It is not really a critical bug but more like a visual thing to not confront users with a stacktrace.

Fixes #417

Signed-off-by: Sebastian Schleemilch <[email protected]>
Copy link
Collaborator

@erikbosch erikbosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@UlfBj - this solves one of the issues you experienced

@UlfBj
Copy link
Contributor

UlfBj commented Oct 23, 2024

I hope it is merged soon then ;)

@erikbosch erikbosch merged commit c5ef757 into COVESA:master Oct 23, 2024
5 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.

Improve assert/datatype check
3 participants