-
Notifications
You must be signed in to change notification settings - Fork 230
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
Unexpected error with schemas #352
Comments
The
schemas (
crate::schemas::auth::LoginSchema as crate::schemas::user::LoginSchema,
crate::schemas::errors::ErrorSchema as crate::schemas::errors::ErrorSchema,
crate::schemas::user::UserSchema as crate::schemas::user::UserSchema ,
)
request_body = LoginSchema,
responses(
(status = 200, description = "Login successfully and return a new token", body = UserSchema), This is indeed not well documented behavior, and should most likely be revised a bit. Perhaps the whole as statement should be removed from the Related to #187 |
@juhaku Thanks, its work with me now. As I understand that I have to put the name in the openapi and not the schema I have, I think this should be documented somewhere |
There is a new functionality coming in new release 3.0.0 described here #435 (comment). It is also documented better in the docs as well. |
My endpoint attr
My openapi struct
My schemas
The errors
The text was updated successfully, but these errors were encountered: