diff --git a/schemars/tests/docs.rs b/schemars/tests/docs.rs index 5f5081e..bcbb513 100644 --- a/schemars/tests/docs.rs +++ b/schemars/tests/docs.rs @@ -23,10 +23,10 @@ pub struct MyStruct { #[derive(Debug, JsonSchema)] pub struct MyUnitStruct; -/// # This is the enum's title -/// This is +#[doc = " # This is the enum's title "] +#[doc = " This is "] #[derive(Debug, JsonSchema)] -/// the enum's description. +#[doc = " the enum's description."] pub enum MyEnum { UndocumentedUnit, /// This comment is not included in the generated schema :( diff --git a/schemars_derive/src/lib.rs b/schemars_derive/src/lib.rs index ff3e7c9..51d31c1 100644 --- a/schemars_derive/src/lib.rs +++ b/schemars_derive/src/lib.rs @@ -15,7 +15,7 @@ use serde_derive_internals::attr::{self as serde_attr, Default as SerdeDefault, use serde_derive_internals::{Ctxt, Derive}; use syn::spanned::Spanned; -#[proc_macro_derive(JsonSchema, attributes(schemars, serde, doc))] +#[proc_macro_derive(JsonSchema, attributes(schemars, serde))] pub fn derive_json_schema(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let mut input = parse_macro_input!(input as syn::DeriveInput);