Skip to content

How to handle headers with - in the name. #208

Answered by sunli829
ChillFish8 asked this question in Q&A
Discussion options

You must be logged in to vote

You can rename parameter names. 😁

async fn a(&self, #[oai(name="foo-bar")] foo_bar:Query<i32>) {
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChillFish8
Comment options

Answer selected by ChillFish8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants