implement all the /indexes/documents route

This commit is contained in:
Tamo 2024-12-19 15:54:10 +01:00
parent 13afdaf393
commit 78f6f22a80
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
5 changed files with 213 additions and 13 deletions

View file

@ -6,6 +6,7 @@ use std::str::FromStr;
use deserr::{DeserializeError, Deserr, MergeWithError, ValueKind};
use serde::de::Visitor;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use utoipa::{IntoParams, PartialSchema, ToSchema};
use crate::deserr::query_params::FromQueryParameter;
@ -229,7 +230,7 @@ pub enum OptionStarOrList<T> {
List(Vec<T>),
}
impl<T> OptionStarOrList<T> {
impl<T: PartialSchema> OptionStarOrList<T> {
pub fn is_some(&self) -> bool {
match self {
Self::None => false,