You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To display the return type in Swagger documentation, I need to have the implementation of utoipa::ToSchema trait for zxcvbn::feedback::Feedback. Such implementation can be easily provided for a locally-defined item (e.g. a struct or an enum) via utoipa::ToSchema derive macro:
As a downstream user of both utoipa and zxcvbn, the easiest and the most logical option for me right now is to fork zxcvbn and use the patched fork instead of the original zxcvbn.
However, I'd love to see a utoipa feature in zxcvbn that would enable utoipa::ToSchema derive macro calls.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
I would like to use
zxcvbn::feedback::Feedback
as a field in anenum
error type that is converted to JSON and returned in this form from an endpoint.To generate Swagger documentation, I use
utoipa
.To display the return type in Swagger documentation, I need to have the implementation of
utoipa::ToSchema
trait forzxcvbn::feedback::Feedback
. Such implementation can be easily provided for a locally-defined item (e.g. astruct
or anenum
) viautoipa::ToSchema
derive macro:For example,
As a downstream user of both
utoipa
andzxcvbn
, the easiest and the most logical option for me right now is to forkzxcvbn
and use the patched fork instead of the originalzxcvbn
.However, I'd love to see a
utoipa
feature inzxcvbn
that would enableutoipa::ToSchema
derive macro calls.Thank you in advance!
The text was updated successfully, but these errors were encountered: