fix a wrong error code + update some error messages

This commit is contained in:
Tamo 2023-01-11 19:14:11 +01:00
parent bf573885ea
commit 6d658f4c52
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ pub struct SearchQuery {
pub hits_per_page: Option<usize>,
#[deserr(error = DeserrError<InvalidSearchAttributesToRetrieve>)]
pub attributes_to_retrieve: Option<BTreeSet<String>>,
#[deserr(error = DeserrError<InvalidSearchAttributesToRetrieve>)]
#[deserr(error = DeserrError<InvalidSearchAttributesToCrop>)]
pub attributes_to_crop: Option<Vec<String>>,
#[deserr(error = DeserrError<InvalidSearchCropLength>, default = DEFAULT_CROP_LENGTH())]
pub crop_length: usize,