I’m hunting for an example or some docs on calling this proposal:
My type uses a variant
public type PlayerPosition = {
#Goalkeeper;
#Defender;
#Midfielder;
#Forward;
};
Validation function expects:
public type CreatePlayerDTO = {
clubId : T.ClubId;
position : T.PlayerPosition;
firstName : Text;
lastName : Text;
shirtNumber : Nat8;
valueQuarterMillions : Nat16;
dateOfBirth : Int;
nationality : T.CountryId;
};
Any help appreciated.