Skip to content

Commit

Permalink
1.0.0-alpha.14
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Aug 29, 2024
1 parent bb72f0a commit 441249a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.0.0-alpha.14] - 2024-08-29

### Added

- Read `#[garde(...)]` attributes as an alternative to `#[validate(...)]` (https://github.com/GREsau/schemars/issues/233 / https://github.com/GREsau/schemars/pull/331). See [the documentation](https://graham.cool/schemars/deriving/attributes/#supported-validatorgarde-attributes) for a full list of supported attributes.

## [1.0.0-alpha.13] - 2024-08-27

### 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 @@ -281,5 +281,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe

```toml
[dependencies]
schemars = { version = "1.0.0-alpha.13", features = ["chrono04"] }
schemars = { version = "1.0.0-alpha.14", features = ["chrono04"] }
```
2 changes: 1 addition & 1 deletion docs/4-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe

```toml
[dependencies]
schemars = { version = "1.0.0-alpha.13", features = ["chrono04"] }
schemars = { version = "1.0.0-alpha.14", features = ["chrono04"] }
```
2 changes: 1 addition & 1 deletion docs/_includes/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Validator docs: [range](https://github.com/Keats/validator#range)

Sets the `pattern` property for string schemas. The `static_regex` will typically refer to a [`Regex`](https://docs.rs/regex/*/regex/struct.Regex.html) instance, but Schemars allows it to be any value with a `to_string()` method.

`regex(pattern = ...)` is a Schemars extension, and not currently supported by the Validator crate. When using this form (or the Garde-style `pattern` attribute), you may want to use a `r"raw string literal"` so that `\\` characters in the regex pattern are not interpreted as escape sequences in the string. Using the `path` form is not allowed in a `#[schemars(...)]` attribute.
`regex(pattern = ...)` is a Schemars extension, and not currently supported by the Validator crate. When using this form (or the Garde-style `pattern` attribute), you may want to use a `r"raw string literal"` so that `\\` characters in the regex pattern are not interpreted as escape sequences in the string. Using the `path = ...` form is not allowed in a `#[schemars(...)]` attribute.

Validator docs: [regex](https://github.com/Keats/validator#regex)

Expand Down
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.13"
version = "1.0.0-alpha.14"
authors = ["Graham Esau <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -13,7 +13,7 @@ categories = ["encoding", "no-std"]
rust-version = "1.65"

[dependencies]
schemars_derive = { version = "=1.0.0-alpha.13", optional = true, path = "../schemars_derive" }
schemars_derive = { version = "=1.0.0-alpha.14", 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.13"
version = "1.0.0-alpha.14"
authors = ["Graham Esau <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit 441249a

Please sign in to comment.