diff --git a/CHANGELOG.md b/CHANGELOG.md index 4033b69..12c8f80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.8.4] - **In-dev** +### Added: +- `#[schemars(schema_with = "...")]` attribute can now be set on enum variants. + +## [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) + +### Fixed: +- Fix deriving JsonSchema on types defined inside macros (https://github.com/GREsau/schemars/issues/59 / https://github.com/GREsau/schemars/issues/66 / https://github.com/GREsau/schemars/pull/79) + ## [0.8.2] - 2021-03-27 ### Added: - Enable generating a schema from any serializable value using `schema_for_value!(...)` macro or `SchemaGenerator::root_schema_for_value()`/`SchemaGenerator::into_root_schema_for_value()` methods (https://github.com/GREsau/schemars/pull/75) diff --git a/README.md b/README.md index e91b1bd..571045d 100644 --- a/README.md +++ b/README.md @@ -273,3 +273,4 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable - [`smallvec`](https://crates.io/crates/smallvec) (^1.0) - [`arrayvec`](https://crates.io/crates/arrayvec) (^0.5) - [`url`](https://crates.io/crates/url) (^2.0) +- [`bytes`](https://crates.io/crates/bytes) (^1.0) diff --git a/docs/1.1-attributes.md b/docs/1.1-attributes.md index 3cc38c4..64d4d14 100644 --- a/docs/1.1-attributes.md +++ b/docs/1.1-attributes.md @@ -38,6 +38,7 @@ TABLE OF CONTENTS - [`title` / `description`](#title-description) - [`example`](#example) - [`deprecated`](#deprecated) + - [`crate`](#crate) - [Doc Comments (`doc`)](#doc) @@ -182,6 +183,13 @@ 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`. +