v0.8.3
This commit is contained in:
parent
b4a6aeb51b
commit
86e2844c93
4 changed files with 4 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
# Changelog
|
||||
|
||||
## [0.8.3] - **In-dev**
|
||||
## [0.8.3] - 2021-04-05
|
||||
### Added:
|
||||
- Support for `#[schemars(crate = "...")]` attribute to allow deriving JsonSchema when the schemars crate is aliased to a different name (https://github.com/GREsau/schemars/pull/55 / https://github.com/GREsau/schemars/pull/80)
|
||||
- Implement `JsonSchema` for `bytes::Bytes` and `bytes::BytesMut` (https://github.com/GREsau/schemars/pull/68)
|
||||
|
|
|
@ -182,15 +182,12 @@ 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">
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "schemars"
|
|||
description = "Generate JSON Schemas from Rust code"
|
||||
homepage = "https://graham.cool/schemars/"
|
||||
repository = "https://github.com/GREsau/schemars"
|
||||
version = "0.8.2"
|
||||
version = "0.8.3"
|
||||
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
@ -13,7 +13,7 @@ categories = ["encoding"]
|
|||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
schemars_derive = { version = "=0.8.2", optional = true, path = "../schemars_derive" }
|
||||
schemars_derive = { version = "=0.8.3", optional = true, path = "../schemars_derive" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
dyn-clone = "1.0"
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "schemars_derive"
|
|||
description = "Macros for #[derive(JsonSchema)], for use with schemars"
|
||||
homepage = "https://graham.cool/schemars/"
|
||||
repository = "https://github.com/GREsau/schemars"
|
||||
version = "0.8.2"
|
||||
version = "0.8.3"
|
||||
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue