GREsau / okapi

OpenAPI (AKA Swagger) document generation for Rust projects
MIT License
578 stars 103 forks source link

Added Generics to fn_name building to solve lifetimes issues #144

Open PixelboysTM opened 4 months ago

PixelboysTM commented 4 months ago

Added Generic parameters to fn_name to solve issues with named lifetimes regarding Issue #84.

Also added an example to showcase the behaviour

ralpha commented 3 months ago

Thanks for the MR. Looks good, but will have to look at this when I have some more time so I can properly test this before merging.

PixelboysTM commented 2 months ago

Hi, thanks! I use my fork of the project in a pretty last project for about 2 Month now without any problems. This only covers lifetimes. From my understanding generics should also be supported but I haven't tested that at all.