You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@
4
4
### Added:
5
5
- Support generic default values in `default` attributes (https://github.com/GREsau/schemars/pull/83)
6
6
- Add missing MIT licence text for usage of code from regex_syntax crate (https://github.com/GREsau/schemars/pull/132)
7
+
- Support uuid v1 and arrayvec 0.7 via feature flags `uuid1` and `arrayvec07` (https://github.com/GREsau/schemars/pull/142)
8
+
- This also adds `uuid08` and `arrayvec05` feature flags for the previously supported versions of these crates. The existing `uuid` and `arrayvec` flags are still supported for backward-compatibility, but they are **deprecated**.
9
+
- Similarly, `indexmap1` feature flag is added, and `indexmap` flag is **deprecated**.
-`impl_json_schema` - implements `JsonSchema` for Schemars types themselves
265
265
-`preserve_order` - keep the order of struct fields in `Schema` and `SchemaObject`
266
266
267
-
## Optional Dependencies
268
-
Schemars can implement `JsonSchema` on types from several popular crates, enabled via optional dependencies (dependency versions are shown in brackets):
Copy file name to clipboardExpand all lines: docs/4-features.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,28 +6,28 @@ permalink: /features/
6
6
---
7
7
8
8
# Feature Flags and Optional Dependencies
9
-
10
-
Some functionality can be selectively enabled/disabled via [Cargo features](https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section). These can be enabled when you add Schemars to your crate's cargo.toml, e.g.
11
-
```toml
12
-
[dependencies]
13
-
schemars = { version = "0.6", features = ["chrono"] }
14
-
```
15
-
16
-
## Feature Flags
17
9
-`derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro
18
10
-`impl_json_schema` - implements `JsonSchema` for Schemars types themselves
19
11
-`preserve_order` - keep the order of struct fields in `Schema` and `SchemaObject`
20
12
21
-
## Optional Dependencies
22
-
Schemars can implement `JsonSchema` on types from several popular crates, enabled via optional dependencies (dependency versions are shown in brackets):
0 commit comments