-
Hi there! I use generated structs from .proto files using
So I was wondering if there is any way to specify the Thanks so much! |
Beta Was this translation helpful? Give feedback.
Answered by
boan-anbo
Sep 1, 2022
Replies: 1 comment
-
Solved by making changes to
.field_attribute("DistantApiSearchResponse.passages", "#[schema(value_type=Vec<Passage>)]")
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
boan-anbo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved by making changes to
prost-build
process, adding type_attribute.prost_build::Config::()
This will let Utoipa's wonderful ToSchema macros take care of changing the
$ref
.Now the new schema looks like: