v0.8.0-alpha-2
This commit is contained in:
parent
a618a90eb4
commit
260cd99293
6 changed files with 8 additions and 5 deletions
|
@ -1,9 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## In-dev - version TBC
|
||||
## **In-dev** - [0.8.0]
|
||||
### Added:
|
||||
- `visit::Visitor`, a trait for updating a schema and all schemas it contains recursively. A `SchemaSettings` can now contain a list of visitors.
|
||||
- `into_object()` method added to `Schema` as a shortcut for `into::<SchemaObject>()`
|
||||
- Preserve order of schema properties under `preserve_order` feature flag (https://github.com/GREsau/schemars/issues/32)
|
||||
|
||||
### Removed (**BREAKING CHANGES**):
|
||||
- `SchemaSettings::bool_schemas` - this has been superseded by the `ReplaceBoolSchemas` visitor
|
||||
|
|
|
@ -205,6 +205,7 @@ fn main() {
|
|||
## Feature Flags
|
||||
- `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`
|
||||
|
||||
## Optional Dependencies
|
||||
Schemars can implement `JsonSchema` on types from several popular crates, enabled via optional dependencies (dependency versions are shown in brackets):
|
||||
|
|
|
@ -16,6 +16,7 @@ schemars = { version = "0.6", features = ["chrono"] }
|
|||
## Feature Flags
|
||||
- `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`
|
||||
|
||||
## Optional Dependencies
|
||||
Schemars can implement `JsonSchema` on types from several popular crates, enabled via optional dependencies (dependency versions are shown in brackets):
|
||||
|
|
|
@ -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.7.6"
|
||||
version = "0.8.0-alpha-2"
|
||||
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.7.6", optional = true, path = "../schemars_derive" }
|
||||
schemars_derive = { version = "=0.8.0-alpha-2", optional = true, path = "../schemars_derive" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
dyn-clone = "1.0"
|
||||
|
|
|
@ -199,7 +199,7 @@ fn main() {
|
|||
## Feature Flags
|
||||
- `derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro.
|
||||
- `impl_json_schema` - implements `JsonSchema` for Schemars types themselves.
|
||||
- `preserve_order` - keep the order of structure fields in `Schema` and `SchemaObject`.
|
||||
- `preserve_order` - keep the order of struct fields in `Schema` and `SchemaObject`
|
||||
|
||||
## Optional Dependencies
|
||||
Schemars can implement `JsonSchema` on types from several popular crates, enabled via optional dependencies (dependency versions are shown in brackets):
|
||||
|
|
|
@ -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.7.6"
|
||||
version = "0.8.0-alpha-2"
|
||||
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue