1.0.0-alpha.17
This commit is contained in:
parent
b54680e7dc
commit
ae4fe29592
6 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
## [1.0.0-alpha.17] - 2024-12-02
|
||||
|
||||
### Changed
|
||||
|
||||
- For newtype variants of internally-tagged enums, prefer referencing the inner type's schema via `$ref` instead of always inlining the schema (https://github.com/GREsau/schemars/pull/355) _(this change was included in the release notes for 1.0.0-alpha.16, but was accidentally excluded from the published crate)_
|
||||
|
||||
## [1.0.0-alpha.16] - 2024-11-25
|
||||
|
||||
### Removed (_⚠️ breaking changes ⚠️_)
|
||||
|
@ -10,7 +16,6 @@
|
|||
|
||||
- MSRV is now 1.70
|
||||
- [The `example` attribute](https://graham.cool/schemars/deriving/attributes/#example) value is now an arbitrary expression, rather than a string literal identifying a function to call. To avoid silent behaviour changes, the expression must not be a string literal where the value can be parsed as a function path - e.g. `#[schemars(example = "foo")]` is now a compile error, but `#[schemars(example = foo())]` is allowed (as is `#[schemars(example = &"foo")]` if you want the the literal string value `"foo"` to be the example).
|
||||
- For newtype variants of internally-tagged enums, prefer referencing the inner type's schema via `$ref` instead of always inlining the schema (https://github.com/GREsau/schemars/pull/355)
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -771,7 +771,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
|
|||
|
||||
[[package]]
|
||||
name = "schemars"
|
||||
version = "1.0.0-alpha.16"
|
||||
version = "1.0.0-alpha.17"
|
||||
dependencies = [
|
||||
"arrayvec",
|
||||
"bigdecimal",
|
||||
|
@ -802,7 +802,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "schemars_derive"
|
||||
version = "1.0.0-alpha.16"
|
||||
version = "1.0.0-alpha.17"
|
||||
dependencies = [
|
||||
"pretty_assertions",
|
||||
"proc-macro2",
|
||||
|
|
|
@ -280,5 +280,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
schemars = { version = "1.0.0-alpha.16", features = ["chrono04"] }
|
||||
schemars = { version = "1.0.0-alpha.17", features = ["chrono04"] }
|
||||
```
|
||||
|
|
|
@ -30,5 +30,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe
|
|||
|
||||
```toml
|
||||
[dependencies]
|
||||
schemars = { version = "1.0.0-alpha.16", features = ["chrono04"] }
|
||||
schemars = { version = "1.0.0-alpha.17", features = ["chrono04"] }
|
||||
```
|
||||
|
|
|
@ -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 = "1.0.0-alpha.16"
|
||||
version = "1.0.0-alpha.17"
|
||||
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
@ -13,7 +13,7 @@ categories = ["encoding", "no-std"]
|
|||
rust-version = "1.70"
|
||||
|
||||
[dependencies]
|
||||
schemars_derive = { version = "=1.0.0-alpha.16", optional = true, path = "../schemars_derive" }
|
||||
schemars_derive = { version = "=1.0.0-alpha.17", optional = true, path = "../schemars_derive" }
|
||||
serde = { version = "1.0", default-features = false, features = ["alloc"]}
|
||||
serde_json = { version = "1.0.127", default-features = false, features = ["alloc"] }
|
||||
dyn-clone = "1.0"
|
||||
|
|
|
@ -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 = "1.0.0-alpha.16"
|
||||
version = "1.0.0-alpha.17"
|
||||
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue