Image reindexing unexpected validation error #11246
Labels
back-end
Relates to back end issues
bug
Something isn't working
refinement
To be included in a future refinement session
Projects
Describe the bug
I want to build a feature to reorder an image, therefore I am using
/propertyImages/reindex
endpoint, I have put the correct payload but I got validation error.To Reproduce
Steps to reproduce the behaviour eg:
/propertyImages/reindex
endpoint withPOST
method (using payload attached below)Expected behaviour
should be success, or a more clear validation error.
Screenshots
![image](https://private-user-images.githubusercontent.com/106480336/341630443-fbd20dfe-de58-4997-b45e-aed78e645d62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxOTExNjEsIm5iZiI6MTcyNTE5MDg2MSwicGF0aCI6Ii8xMDY0ODAzMzYvMzQxNjMwNDQzLWZiZDIwZGZlLWRlNTgtNDk5Ny1iNDVlLWFlZDc4ZTY0NWQ2Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMVQxMTQxMDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zOGEwZmQyMjIwNTA1YzIyYTUwM2E0N2NmOWJhNzUxZmMyNjA4NTllNTJhYWEzOWZjYmM4MDcyZmVmZDk1MzI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.TP2GaTNT15k_tThZKbvfzUnTVaQHiX-u72bEeX7Gytc)
payload
{
"propertyId": "FND236766",
"imageOrder": [
"FND236766_13.jpg",
"FND236766_14.jpg",
"FND236766_15.jpg",
"FND236766_16.jpg",
"FND236766_17.jpg"
]
}
The text was updated successfully, but these errors were encountered: