ansys.dyna.core.lib.validators.UniqueIDValidator#
- class ansys.dyna.core.lib.validators.UniqueIDValidator(keyword_type: str, field_name: str, severity: ValidationSeverity = ValidationSeverity.ERROR)#
Bases:
ValidatorValidator that checks for unique ID fields across keyword types.
- keyword_type#
- field_name#
- validate(deck: ansys.dyna.core.lib.deck.Deck, result: ValidationResult) None#
Validate that ID field is unique across keywords of the specified type.
- Parameters:
- deck
Deck The deck to validate.
- result
ValidationResult Result object to accumulate validation errors.
- deck