From 4b0d087a283b6f4f6b5df24fb7dedc9ded180a0a Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sun, 27 Aug 2023 22:56:27 +0100 Subject: [PATCH] Update docs and changelog --- CHANGELOG.md | 1 + README.md | 1 + docs/4-features.md | 3 +++ 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51f5f112..8d654449 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,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) ### Changed: diff --git a/README.md b/README.md index ed1489f0..52b368f6 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,7 @@ Schemars can implement `JsonSchema` on types from several popular crates, enable - `chrono` - [chrono](https://crates.io/crates/chrono) (^0.4) - `indexmap1` - [indexmap](https://crates.io/crates/indexmap) (^1.2) +- `indexmap2` - [indexmap](https://crates.io/crates/indexmap) (^2.0) - `either` - [either](https://crates.io/crates/either) (^1.3) - `uuid08` - [uuid](https://crates.io/crates/uuid) (^0.8) - `uuid1` - [uuid](https://crates.io/crates/uuid) (^1.0) diff --git a/docs/4-features.md b/docs/4-features.md index 51127739..9c7e0a5e 100644 --- a/docs/4-features.md +++ b/docs/4-features.md @@ -6,13 +6,16 @@ permalink: /features/ --- # Feature Flags and Optional Dependencies + - `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` Schemars can implement `JsonSchema` on types from several popular crates, enabled via feature flags (dependency versions are shown in brackets): + - `chrono` - [chrono](https://crates.io/crates/chrono) (^0.4) - `indexmap1` - [indexmap](https://crates.io/crates/indexmap) (^1.2) +- `indexmap2` - [indexmap](https://crates.io/crates/indexmap) (^2.0) - `either` - [either](https://crates.io/crates/either) (^1.3) - `uuid08` - [uuid](https://crates.io/crates/uuid) (^0.8) - `uuid1` - [uuid](https://crates.io/crates/uuid) (^1.0)