Support for #[schemars(crate = "...")] (#80)

This commit is contained in:
Graham Esau 2021-04-05 19:34:28 +01:00 committed by GitHub
parent ebd7ff32ce
commit b2b733ba5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 87 additions and 10 deletions

View file

@ -182,6 +182,16 @@ Set on a container, variant or field to include the result of the given function
Set the Rust built-in [`deprecated`](https://doc.rust-lang.org/edition-guide/rust-2018/the-compiler/an-attribute-for-deprecation.html) attribute on a struct, enum, field or variant to set the generated schema's `deprecated` keyword to `true`.
<!--
TODO Uncomment for 0.8.3
<h3 id="crate">
`#[schemars(crate = "other_crate::schemars")]`
</h3>
Set the path to the schemars crate instance the generated code should depend on. This is mostly useful for other crates that depend on schemars in their macros.
-->
<h3 id="doc">
Doc Comments (`#[doc = "..."]`)