Jens Reimann
Jens Reimann
> Trying to paraphrase what PSeitz is trying to say: This is the expected behaviour of what is generally called an ngram tokenizer, i.e. it will not care about whitespace....
> In that case, you might want to look at [`SplitCompoundWords`](https://docs.rs/tantivy/latest/tantivy/tokenizer/struct.SplitCompoundWords.html) which will split based on user-supplied dictionary. This can be more efficient compare to the more brute-force approach of...
The docs say: > The #[aliases(...)] is just syntactic sugar and will create Rust [type aliases](https://doc.rust-lang.org/reference/items/type-aliases.html) behind the scenes which then can be later referenced anywhere in code. That doesn't...
I tried with: ```rust #[derive(ToSchema)] pub struct SearchResultFoo(SearchResult>); ``` However, that only creates a direct ref to `SearchResult` again. Falling back o the original problem. And it doesn't look like...
Actually I would expect this to work, but it doesn't: ```rust pub struct SearchResultFoo(SearchResult); impl for SearchResultFoo { fn schema() -> (&'__s str, RefOr) { ("SearchResultFoo", schema!(#[inline] SearchResult)) } }...
I would expect this to work too: ```rust #[derive(ToSchema)] #[aliases(SearchResultFoo = LocalSearchResult)] pub struct LocalSearchResult(SearchResult); ``` However that fails to compile with: ``` error[E0277]: the trait bound `Schema: std::convert::From` is...
The only thing that seems to work is to copy the type into the downstream creates … which is far from optimal.
What about adding an alias/with/external attribute to the `OpenApi` derive? Where you can add an arbitrary schema created by an `fn` under a certain name.
I am running into a similar situation, where I end up with: ```yaml my-field: type: object additionalProperties: $ref: '#/components/schemas/BTreeSet' ``` And it seems there's no way to override the of...
What would be really helpful, would be some kind of scope, using the following as an example: ```rust pub fn configure(svc: &mut web::ServiceConfig, db: Database) { svc.app_data(web::Data::new(ImporterService::new(db))); svc.service( web::scope("/api/v1/importer") .service(list)...