Skip to content

Commit

Permalink
Update docs and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Oct 2, 2022
1 parent c59e5b5 commit 4f14c1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## **in-dev**
### Added:
- Replace auto-inferred trait bounds with bounds specified in `#[schemars(bound = "...")]` attribute

### Changed:
- Derived `JsonSchema` now respects attributes on unit enum variants (https://github.com/GREsau/schemars/pull/152)
- Minimum supported rust version is now 1.45.0
Expand Down
10 changes: 10 additions & 0 deletions docs/1.1-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ TABLE OF CONTENTS
- [`skip_deserializing`](#skip_deserializing)
- [`flatten`](#flatten)
- [`with`](#with)
- [`bound`](#bound)
1. [Supported Validator Attributes](#supported-validator-attributes)
- [`email` / `phone` / `url`](#email-phone-url)
- [`length`](#length)
Expand Down Expand Up @@ -160,6 +161,15 @@ Set on a newtype struct or a braced struct with one field to make the struct's g

Serde docs: [container](https://serde.rs/container-attrs.html#transparent)

<h3 id="bound">

`#[schemars(bound = "...")]`
</h3>

Where-clause for the JsonSchema impl. This replaces any trait bounds inferred by schemars. Schemars does **not** use trait bounds from `#[serde(bound)]` attributes.

Serde docs: [container](https://serde.rs/container-attrs.html#bound)

</div>

## Supported Validator Attributes
Expand Down

0 comments on commit 4f14c1a

Please sign in to comment.