Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Jan 24, 2024
1 parent db55621 commit 39cd706
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ type UnionOrTypeSafeEnumConverterFactory(typeSafeEnum, union) =
static let hasConverterAttribute = memoize (fun (t: Type) -> t.IsDefined(typeof<JsonConverterAttribute>, true))

override _.CanConvert(t: Type) =
t.IsGenericType
&& not (let gtd = t.GetGenericTypeDefinition() in gtd = typedefof<option<_>> || gtd = typedefof<list<_>>)
not (t.IsGenericType && let gtd = t.GetGenericTypeDefinition() in gtd = typedefof<option<_>> || gtd = typedefof<list<_>>)
&& FsCodec.Union.isUnion t
&& not (hasConverterAttribute t)
&& ((typeSafeEnum && union)
Expand Down

0 comments on commit 39cd706

Please sign in to comment.