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
When writing custom validation method to the value object only Validation type is allowed as the return type. Problem is when someone is already using Validation as part of the namespace
Describe the bug
When writing custom validation method to the value object only Validation type is allowed as the return type. Problem is when someone is already using Validation as part of the namespace
![image](https://private-user-images.githubusercontent.com/9059682/241718553-7067c5e8-abba-4e7d-886b-64d3a5e15d82.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3NTQ3NDIsIm5iZiI6MTczOTc1NDQ0MiwicGF0aCI6Ii85MDU5NjgyLzI0MTcxODU1My03MDY3YzVlOC1hYmJhLTRlN2QtODg2Yi02NGQzYTVlMTVkODIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTdUMDEwNzIyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Nzk5MjJlYWI4YmNhZGRmYWIwNzBhNTAwZGI2N2FmNDIwMGQ2ZGQ2ZWIwZThhZjUyOWQ1NmNlMzUyZTFiZjNjMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ZRlQzSGTeDIKBAMQELsEcDNzuYnQ1FtpRsRCK543iq4)
Steps to reproduce
[ValueObject(typeof(string))] public readonly partial struct DataGroupItemId { private static Vogen.Validation Validate(string input) => string.IsNullOrEmpty(input) ? Vogen.Validation.Invalid($"{nameof(DataGroupItemId)} cannot be empty") : Vogen.Validation.Ok; }
Expected behaviour
Using Vogen.Validation type should also be allowed
The text was updated successfully, but these errors were encountered: