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

Products should have multiple images #87

Open
adam-kwiatkowski opened this issue May 17, 2023 · 0 comments
Open

Products should have multiple images #87

adam-kwiatkowski opened this issue May 17, 2023 · 0 comments

Comments

@adam-kwiatkowski
Copy link
Collaborator

According to the API documentation, the image field should be an array containing strings, but the API is returning a single string instead. I know that combining singular form of the field name with an array type is very confusing

Expected response body:

{
  "productID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "description": "string",
  "image": [
    "string"
  ],
  "price": 0,
  "quantity": 0,
  "category": "flower"
}

An easy workaround for this would be to wrap the image in a single element array when creating the response body, but it would be nice to have real support for multiple images

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