Skip to content

v0.6.0

Compare
Choose a tag to compare
@GREsau GREsau released this 09 Dec 21:09
· 395 commits to master since this release

Added:

  • When deriving JsonSchema, the schema's title and description are now set from #[doc] comments (#7)
  • When deriving JsonSchema on structs using a #[serde(default)] attribute, the schema's properties will now include default, unless the default value is skipped by the field's skip_serializing_if function (#6)

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.