Error on unknown schemars attr items

This commit is contained in:
Graham Esau 2020-06-04 19:39:57 +01:00
parent a829267111
commit b0a2f9994b
3 changed files with 27 additions and 24 deletions

View file

@ -5,7 +5,7 @@ use syn::parse::Parser;
use syn::{Attribute, Data, Field, Meta, NestedMeta, Variant};
// List of keywords that can appear in #[serde(...)]/#[schemars(...)] attributes which we want serde_derive_internals to parse for us.
static SERDE_KEYWORDS: &[&str] = &[
pub(crate) static SERDE_KEYWORDS: &[&str] = &[
"rename",
"rename_all",
"deny_unknown_fields",