Skip to content

v1.0.0-alpha.21

Pre-release
Pre-release

Choose a tag to compare

@GREsau GREsau released this 09 Jun 10:50
· 66 commits to master since this release

Changed

  • Improve automatic trait bounds (#422 / #373)
    • Type params that are only used in skipped fields or PhantomData no longer have an unnecessary JsonSchema bound automatically added
    • Remove type params from default schema_name() whether or not they impl JsonSchema. Type params can still be included in the name by specifying them in a rename attribute.
  • Recursive references to the root schema type now use "$ref": "#" instead of duplicating the entire schema within $defs/definitions (#418 / #175)
  • Schemas for untagged enum variants no longer have the "title" set to the variant name (added in alpha.19) by default, but this behaviour is still available by setting the untagged_enum_variant_titles flag on SchemaSettings. (#421 / #420)