Skip to content

JsonSchemaGeneratorSettings

Rico Suter edited this page Sep 12, 2016 · 26 revisions

Properties:

  • DefaultEnumHandling: The default enum handling (default: Integer).
  • DefaultPropertyNameHandling: The default property name handling:
    • Default: Generates property name using reflection (respecting the JsonPropertyAttribute and DataMemberAttribute).
    • CamelCase: Generates lower camel cased property names using CamelCasePropertyNamesContractResolver.
  • FlattenInheritanceHierarchy: Value indicating whether to flatten the inheritance hierarchy instead of using allOf to describe inheritance (default: false).
  • GenerateKnownTypes: Specifies whether to generate schemas for types in KnownTypeAttribute attributes.
Clone this wiki locally