I'v'e been trying to validate my request based on my entity (Product) dto.
Everything is working fine, except for 'From' and 'To' fields.
Customer and Type fields are validated correctly, if i try to send a request with wrong data, that's what i get.
"statusCode": 400,
"message": [
"type must be a valid enum value"
],
"error": "Bad Request"
Expected Behavior
ProductDto should validate 'From' and 'To' fields from LeagueEntity.
![enter image description here](https://i.stack.imgur.com/vwDdb.png)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…