From 1044718dbd1e54d8cbef1439eb8e162e0a5717ba Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Wed, 30 Oct 2019 22:11:53 +0000 Subject: [PATCH] Add missing doc comment for "title" --- schemars/src/schema.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/schemars/src/schema.rs b/schemars/src/schema.rs index b0f79f7..796e3df 100644 --- a/schemars/src/schema.rs +++ b/schemars/src/schema.rs @@ -213,6 +213,9 @@ pub struct Metadata { /// See [JSON Schema 8.2.2. The "$id" Keyword](https://tools.ietf.org/html/draft-handrews-json-schema-02#section-8.2.2). #[serde(rename = "$id", skip_serializing_if = "Option::is_none")] pub id: Option, + /// The `title` keyword. + /// + /// See [JSON Schema Validation 9.1. "title" and "description"](https://tools.ietf.org/html/draft-handrews-json-schema-validation-02#section-9.1). #[serde(skip_serializing_if = "Option::is_none")] pub title: Option, /// The `description` keyword.