-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Endpoint: https://scayle.dev/en/api-guides/storefront-api/resources/products/list-products
Called via: https://mvnrepository.com/artifact/com.scayle.storefrontapi/StorefrontClient/1.136.1
When Parmeter with=categories then the endoint return exception:
Error collect products: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 4023 path $.entities[0].categories[0]
See https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure
JSON Sceme from this endpoint expect 2 dimensional array for categories, this is returned by the API, but the object in the JAVA SDK expect 1 dimensional array for categories -> com.scayle.storefrontapi.model.Product
Metadata
Metadata
Assignees
Labels
No labels