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
Ran dotnet saturn gen.json test test id:guid other:string and got this output which does not build (isNull u.id).
namespace test
[<CLIMutable>]
type test = {
id: System.Guid
other: string
}
module Validation =
let validate v =
let validators = [
fun u -> if isNull u.id then Some ("id", "Id shouldn't be empty") else None
]
validators
|> List.fold (fun acc e ->
match e v with
| Some (k,v) -> Map.add k v acc
| None -> acc
) Map.empty
I would think that for a Guid, it'd be something like a Guid.Empty = u.id.
The text was updated successfully, but these errors were encountered:
Ran
dotnet saturn gen.json test test id:guid other:string
and got this output which does not build (isNull u.id).I would think that for a Guid, it'd be something like a
Guid.Empty = u.id
.The text was updated successfully, but these errors were encountered: