IFC-1480: Validate optional and unique attribute parameters

Closed
SO
4mo ago
+96-1

Fixes https://github.com/opsmill/infrahub/issues/6364

Validation to check the optional and unique attribute parameters that they are not both True for generics and nodes attributes
This check only occurs if schema_strict_mode configuration setting is True

Summary by CodeRabbit

  • New Features
    • Added validation to prevent an attribute being configured as both optional and unique; enforcement respects the system's strict-schema validation setting.
  • Tests
    • Added unit tests covering the new validation and behavior when strict-schema validation is disabled.
  • Documentation
    • Changelog entry documenting the new attribute-parameter validation.