Open TetianaPerinha opened 1 month ago
I can't seem to find the ProductInfoDto class file. Maybe the avgRating field in the DTO is a String ?
I can't seem to find the ProductInfoDto class file. Maybe the avgRating field in the DTO is a String ?
I compared the avgRating from JSON responses and got an error in a test that I tried to compare a different type of data.
Describe the bug Product averageRating getting from endpoints - /api/v1/products and /api/v1/products/{productId}/reviews/statistics has different data type.
/api/v1/products/{productId}/reviews/statistics has "avgRating": "string" - <class 'str'> /api/v1/products has "averageRating": 0 - <class 'float'>