Skip to content

Commit

Permalink
doc: Added discriminator doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
vgerber committed Dec 8, 2024
1 parent fb575c0 commit 40706b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/oas3/src/spec/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,9 @@ pub struct ObjectSchema {
#[serde(flatten, with = "spec_extensions")]
pub extensions: BTreeMap<String, serde_json::Value>,

/// Discriminator for object selection based on propertyName
///
/// See <https://spec.openapis.org/oas/v3.1.0#discriminator-object>
#[serde(default, skip_serializing_if = "Option::is_none")]
pub discriminator: Option<Discriminator>,
}
Expand Down

0 comments on commit 40706b4

Please sign in to comment.