From dbdace1a937c29ad430a7bbfe2d012f6a7157a1a Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 9 Apr 2025 08:53:17 -0500 Subject: [PATCH] chore: change OptionType to alias for usage as string To be backwards compatible using this repo as a library, use a string alias. This allows using the 'type' as a `string` or the new enum. Since enum validation is quite weak in Go, this is baiscally functionally equvialent. --- provider/formtype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/formtype.go b/provider/formtype.go index 48fbeed3..753f8945 100644 --- a/provider/formtype.go +++ b/provider/formtype.go @@ -13,7 +13,7 @@ import ( // // The value have to be string literals, as type constraint keywords are not // supported in providers. -type OptionType string +type OptionType = string const ( OptionTypeString OptionType = "string"