-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
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
#[schema(inline)]
for enums like for structs
#727
Comments
Pretty good idea. Surely this is something that could be explored in future and if possible added to the library as well. Also PRs are welcome if there is enough interest on implementing this feature. |
@juhaku if that's still on the table I'll try to do it. |
@JMLX42 great, all the help is welcome 🙂 |
Done in the PR @JMLX42 pointed above |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After digging through
utoipa-gen
tests, I was wondering, if there's a possibility for using sth like#[schema(inline)]
forenum
s so that definitions that were otherwise end up being referenced are inlined.would end up being a schema without any
$ref
. Maybe it would make sense to move the#[schema(inline)]
to the actual type like thisBasicAuth(#[schema(inline)] BasicAuth)
We have another system that doesn't handle
$ref
too well. Having the#[schema(inline)]
for structs, it would be nice for enums as well.The text was updated successfully, but these errors were encountered: