feat(all): introduce minWordLengthForTypo

fix typo in settting

skip serializing not set typo settings
This commit is contained in:
ad hoc 2022-03-22 16:28:00 +01:00
parent 981fba5b44
commit 27a88bcd47
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
4 changed files with 56 additions and 7 deletions

View file

@ -120,6 +120,7 @@ pub enum Code {
IndexAlreadyExists,
IndexNotFound,
InvalidIndexUid,
InvalidMinWordLengthForTypo,
// invalid state error
InvalidState,
@ -271,6 +272,9 @@ impl Code {
InvalidApiKeyDescription => {
ErrCode::invalid("invalid_api_key_description", StatusCode::BAD_REQUEST)
}
InvalidMinWordLengthForTypo => {
ErrCode::invalid("invalid_min_word_length_for_typo", StatusCode::BAD_REQUEST)
}
}
}