Support for #[schemars(crate = "...")] (#80)
This commit is contained in:
parent
ebd7ff32ce
commit
b2b733ba5c
6 changed files with 87 additions and 10 deletions
|
@ -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 = "..."]`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue