Skip to content

Commit

Permalink
1.0.0-alpha.17
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Dec 2, 2024
1 parent b54680e commit ae4fe29
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 ⚠️_)
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
```
2 changes: 1 addition & 1 deletion docs/4-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
```
4 changes: 2 additions & 2 deletions schemars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion schemars_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit ae4fe29

Please sign in to comment.