You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Mockoon environment provided (./ressources/mockoon/rental-oc.json) has an inconsistency in the data structure for the "picture" property in the response for the GET api/rental/:id endpoint.
According to the interface definition in the Front-End code (src/app/features/rentals/interfaces/rental.interface.ts), the "picture" property should be a string, not an array of strings (furthermore, it corroborates with the data structure of the rentals in the GET api/rental/ endpoint).
Here's an image of proof about the issue:
Proposed Solution:
Remove the square brackets [] around the "picture" property in the Mockoon environment file to make it a single string.
The text was updated successfully, but these errors were encountered:
Description:
The Mockoon environment provided (./ressources/mockoon/rental-oc.json) has an inconsistency in the data structure for the
"picture"
property in the response for theGET api/rental/:id
endpoint.According to the interface definition in the Front-End code (src/app/features/rentals/interfaces/rental.interface.ts), the
"picture"
property should be a string, not an array of strings (furthermore, it corroborates with the data structure of the rentals in theGET api/rental/
endpoint).Here's an image of proof about the issue:
Proposed Solution:
Remove the square brackets
[]
around the"picture"
property in the Mockoon environment file to make it a single string.The text was updated successfully, but these errors were encountered: