From c487bbb9e7643cc81a187131d35d3338bee0797a Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Mon, 28 Aug 2023 12:20:38 +0100 Subject: [PATCH] Update docs and changelog --- CHANGELOG.md | 1 + README.md | 1 + docs/4-features.md | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d65444..0a4c73e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Implement `JsonSchema` for `semver::Version` (https://github.com/GREsau/schemars/pull/195 / https://github.com/GREsau/schemars/pull/238) - Include const generics in generated schema names (https://github.com/GREsau/schemars/pull/179 / https://github.com/GREsau/schemars/pull/239) - Implement `JsonSchema` for types from indexmap v2 (https://github.com/GREsau/schemars/pull/226 / https://github.com/GREsau/schemars/pull/240) +- Implement `JsonSchema` for `serde_json::value::RawValue` (https://github.com/GREsau/schemars/pull/183) ### Changed: diff --git a/README.md b/README.md index 52b368f..dd42b05 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,7 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap()); - `derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro - `impl_json_schema` - implements `JsonSchema` for Schemars types themselves - `preserve_order` - keep the order of struct fields in `Schema` and `SchemaObject` +- `raw_value` - implements `JsonSchema` for `serde_json::value::RawValue` (enables the serde_json `raw_value` feature) Schemars can implement `JsonSchema` on types from several popular crates, enabled via feature flags (dependency versions are shown in brackets): diff --git a/docs/4-features.md b/docs/4-features.md index 9c7e0a5..d44f0ae 100644 --- a/docs/4-features.md +++ b/docs/4-features.md @@ -10,6 +10,7 @@ permalink: /features/ - `derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro - `impl_json_schema` - implements `JsonSchema` for Schemars types themselves - `preserve_order` - keep the order of struct fields in `Schema` and `SchemaObject` +- `raw_value` - implements `JsonSchema` for `serde_json::value::RawValue` (enables the serde_json `raw_value` feature) Schemars can implement `JsonSchema` on types from several popular crates, enabled via feature flags (dependency versions are shown in brackets):