Comments (4)
Right, now there is a another issue hindering this from functioning. Originally it was not not desingned to support such case where the type would be in another module. I will address this in next PR, but current workaround is to declare the type in same module as the handler is defined.
from utoipa.
Hi, good finding. This should be fixed with next release and actually with this PR: #156. The ParameterIn
trait will be removed completely so it won't cause any furhter issues.
New version is now released and it should fix this issue. https://crates.io/crates/utoipa
from utoipa.
Indeed it works now! Thank you very much 😁
from utoipa.
It actually still doesn't work. I do not get the error yes, but nothing is generated
if i put the struct in the same file then it is generated as expected
(I'm using another struct in this screenshot)
from utoipa.
Related Issues (20)
- External generic Wrapper ToSchema
- Option to always inline custom `ToSchema` impls
- Utoipa swagger bug on axum: the url option points to two different locations HOT 1
- Content type not seted
- examples todo-actix can't run HOT 2
- x-tagGroups for redoc
- ExclusiveMinimum fails to validate specs. HOT 1
- Unexpected Behaviour for #[serde(skip_serializing)]
- Utoipa path derive has conflict with axum-valid Valid for form HOT 1
- PathItem deserialization broken because operations field and extensions field are both map-like.
- Nullable $ref's should include type: object HOT 1
- Representing generic JSON? HOT 1
- Conditional nested APIs based on features HOT 2
- Problems with multiple generics in actix? HOT 3
- Paths are always assigned to a tag with their module path HOT 6
- Nested Generics don't resolve inner type properly
- Not possible to use `x-internal` flag HOT 1
- `ToSchema` not implemented for primitive if the primitive is behind a type alias HOT 1
- Ignore fields in `#[derive(IntoResponses)]`?
- A way to import schemas? - import schemas from a path to module instead of the full path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utoipa.