We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example
NewType
I would like to use NewType such as
#[derive(NewType)] pub struct MyString(String)
And I also want to generate example for it in my OpenAPI docs, is it possible to do that?
#[derive(NewType)] #[oai(exmpale)] pub struct MyString(String) impl Example for MyString { fn example() -> Self { Self("abc".to_string()) } }
The text was updated successfully, but these errors were encountered:
Add example attribute to the NewType macro #404
example
2d91d10
Added in master branch 🙂
master
Sorry, something went wrong.
Thanks, good job!
No branches or pull requests
Description of the feature
I would like to use NewType such as
And I also want to generate example for it in my OpenAPI docs, is it possible to do that?
Code example (if possible)
The text was updated successfully, but these errors were encountered: