Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mockoon: Incorrect property data structure for "picture" for the GET api/rental/:id endpoint #5

Open
LePhenix47 opened this issue Nov 26, 2023 · 0 comments

Comments

@LePhenix47
Copy link

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 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:
image

Proposed Solution:

Remove the square brackets [] around the "picture" property in the Mockoon environment file to make it a single string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant