You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
move model.bom.Bom.validate() to validation.models #455
changed the title [-][IDEA] move `model.bom.Bom.validate()` to `validation.models`[/-][+]move `model.bom.Bom.validate()` to `validation.models`[/+]on Sep 16, 2024
I've implemented a ModelValidator that returns an iterable of errors (so you can collect multiple issues instead of failing on the first one). It's side-effect free - just validates, doesn't mutate anything.
@jkowalleck I noticed Bom.validate() was marked "deprecated without replacement," but it does two things - normalization (
register_dependency calls) AND validation. For backward compatibility, I kept both in the deprecated method. The new ModelValidator only validates. How do you want to handle this going forward?
Keep the current approach (normalization stays in deprecated Bom.validate())
Remove it completely (breaking change) and make validation optional with a parameter
Activity
[-][IDEA] move `model.bom.Bom.validate()` to `validation.models`[/-][+]move `model.bom.Bom.validate()` to `validation.models`[/+]saquibsaifee commentedon Jan 30, 2026
This is just moving
Bom.validate()tovalidation.modelas-is and update the references, or do you want it refactored into smaller functions?jkowalleck commentedon Feb 6, 2026
existing public API shall be deprecated and something more advanced shall be provided.
details may be discussed
saquibsaifee commentedon Feb 15, 2026
Opened a draft to get something going on.
I've implemented a ModelValidator that returns an iterable of errors (so you can collect multiple issues instead of failing on the first one). It's side-effect free - just validates, doesn't mutate anything.
@jkowalleck I noticed Bom.validate() was marked "deprecated without replacement," but it does two things - normalization (
register_dependency calls) AND validation. For backward compatibility, I kept both in the deprecated method. The new ModelValidator only validates. How do you want to handle this going forward?
saquibsaifee commentedon Feb 15, 2026
Do you already have some ideas about advance impelementation?