schema_with
attribute
This commit is contained in:
parent
9d951b34ce
commit
3fd316063a
15 changed files with 538 additions and 51 deletions
|
@ -1,8 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
## In-dev - version TBC
|
||||
### Added:
|
||||
- `#[schemars(schema_with = "...")]` attribute can be set on variants and fields. This allows you to specify another function which returns the schema you want, which is particularly useful on fields of types that don't implement the JsonSchema trait (https://github.com/GREsau/schemars/issues/15)
|
||||
|
||||
### Fixed
|
||||
- `#[serde(with = "...")]`/`#[schemars(with = "...")]` attributes on enum variants are now respected
|
||||
- Some compiler errors generated by schemars_derive should now have more accurate spans
|
||||
|
||||
## [0.7.2] - 2020-04-30
|
||||
### Added:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue