riazuezra
❔ POST request in swagger shows entire schema and parts of it are not needed in request body
I have a one to one relationship between Product and CartItem, in the POST request for Product the CartItem also shows but it's only there for the ef core relationship and not req body.
9 replies
✅ Difference between [DataType(DataType.EmailAddress)] and [EmailAddress] data annotations?
Can anyone let me know what's the difference between [DataType(DataType.EmailAddress)] and [EmailAddress] data annotations? Using the former alone is not validating the email field so what's it's purpose? Thanks
6 replies