Skip to content
Discussion options

You must be logged in to vote

The solution is to mark the struct as inline like so:

#[derive(Deserialize, JsonSchema)]
#[schemars(inline)] // <--- 
struct LocationPathParams {
    /// Documentation for the {name} path parameter
    name: String
}

This also works for the Query extractor, and presumably any other that I didn't think of.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nCrazed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant