mohammadKarimi / SwiftLink

SwiftLink is a modern URL shortener with Asp.net Core 8
MIT License
105 stars 26 forks source link

Add conditional validation for BackHalf property #109

Closed MohamadReza-khani closed 7 months ago

MohamadReza-khani commented 7 months ago

Resolve exception for nullable BackHalf property

This update addresses an issue where null values submitted for the BackHalf property were triggering an exception due to the validation rule. The validation logic has been modified to only apply when the BackHalf property is not null, ensuring that the application can gracefully handle null inputs without causing unintended exceptions.