Skip to content

Commit

Permalink
Add description to Union descriminator object schema (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruwozniak authored Dec 18, 2024
1 parent 3818a19 commit 44051f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poem-openapi-derive/src/union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ pub(crate) fn generate(args: DeriveInput) -> GeneratorResult<TokenStream> {
}

let schema = #crate_name::registry::MetaSchema {
description: #description,
all_of: ::std::vec![
#crate_name::registry::MetaSchemaRef::Inline(::std::boxed::Box::new(#crate_name::registry::MetaSchema {
required: #required,
Expand Down

0 comments on commit 44051f1

Please sign in to comment.