From d19f04e60b521feb0597e55f86cc76e8b743e8db Mon Sep 17 00:00:00 2001 From: Park Joon-Kyu Date: Mon, 9 Jan 2023 00:13:22 +0900 Subject: [PATCH] add deprecated field on Schema object --- src/v3_0/schema.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/v3_0/schema.rs b/src/v3_0/schema.rs index ab8ba7d..7cf54e9 100644 --- a/src/v3_0/schema.rs +++ b/src/v3_0/schema.rs @@ -523,6 +523,9 @@ pub struct Schema { #[serde(skip_serializing_if = "Option::is_none", rename = "minProperties")] pub min_properties: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub deprecated: Option, + // The following properties are taken from the JSON Schema definition but their // definitions were adjusted to the OpenAPI Specification. // - type - Value MUST be a string. Multiple types via an array are not supported.