enumer icon indicating copy to clipboard operation
enumer copied to clipboard

Add optional Validate() error method

Open peczenyj opened this issue 11 months ago • 1 comments

port of https://github.com/dmarkham/enumer/pull/82

this pull request will adds an optional method Validate() error -- and this is a very common interface -- that return an error if the IsA<Type>() bool returns false.

The advantage over IsA<Type>() bool is the interface. Makes easier to integrate with other tools such as validators

peczenyj avatar Jan 15 '25 20:01 peczenyj

conflict solved

peczenyj avatar Aug 16 '25 08:08 peczenyj