Closed zijianhuang closed 6 months ago
and improve HeroesDemo with Angular Material
LengthAttribute available only in .NET 8. Better to implement in OpenApiClientGen first.
Phone constraint may be better to be implement at the application level. Particularly in HTML template with attribute pattern.
RegularExpression is done.
https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.lengthattribute https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.regularexpressionattribute
and for PhoneAttribute, translate it to pattern(phoneRegex).