Do not inline referenceable schemas to set nullable

This commit is contained in:
Graham Esau 2019-12-08 11:29:02 +00:00
parent 529e3d4611
commit 89d3024beb
3 changed files with 85 additions and 217 deletions

View file

@ -3,6 +3,8 @@
## [0.6.0] - TBD
### Added:
- When deriving `JsonSchema`, the schema's `title` and `description` are now set from `#[doc]` comments (https://github.com/GREsau/schemars/issues/7)
### Changed:
- When the `option_nullable` setting is enabled (e.g. for openapi 3), schemas for `Option<T>` will no longer inline `T`'s schema when it should be referenceable.
## [0.5.1] - 2019-10-30
### Fixed: