benjaminjonard / koillection

Koillection is a self-hosted service allowing users to manage any kind of collections.
https://github.com/koillection/koillection/wiki
MIT License
541 stars 24 forks source link

Price (price) is not a valid choice for type. #1152

Closed azuravian closed 3 weeks ago

azuravian commented 4 weeks ago

When adding data to an item using the API, it is impossible to add price data. All other types are added by their name in lowercase. I have tried using both "price" and "Price" as the type of the new data being added. I get the same message I would get if I put gibberish as the type:

{ "@id": "\/api\/validation_errors\/8e179f1b-97aa-4560-a02f-2a8b42e49df7", "@type": "ConstraintViolationList", "status": 422, "violations": [ { "propertyPath": "type", "message": "The value you selected is not a valid choice.", "code": "8e179f1b-97aa-4560-a02f-2a8b42e49df7" } ], "detail": "type: The value you selected is not a valid choice.", "hydra:title": "An error occurred", "hydra:description": "type: The value you selected is not a valid choice.", "type": "\/validation_errors\/8e179f1b-97aa-4560-a02f-2a8b42e49df7", "title": "An error occurred" }

benjaminjonard commented 4 weeks ago

This is bug it will be fixed in the next release, it should be available in a few days.

azuravian commented 4 weeks ago

Thank you. That will be fantastic.

benjaminjonard commented 3 weeks ago

Hello, it should work now