<PackageReference Include="NJsonSchema" Version="8.17.6295.16496" />

JsonObjectTypeDescription

Gets JSON information about a .NET type.
public string Format { get; }

Gets the format string.

public bool IsAny { get; }

Gets a value indicating whether this is an any type (e.g. object).

public bool IsComplexType { get; }

Gets a value indicating whether this is a complex type (i.e. object, dictionary or array).

public bool IsDictionary { get; }

Gets a value indicating whether the object is a generic dictionary.

public bool IsEnum { get; }

Gets a value indicating whether the type is an enum.

public bool IsNullable { get; }

Gets a value indicating whether the type is nullable.

public JsonObjectType Type { get; }

Gets the type.

public static JsonObjectTypeDescription FromType(Type type, IEnumerable<Attribute> parentAttributes, EnumHandling defaultEnumHandling)

Creates a JsonObjectTypeDescription from a Type.

public static bool IsStringEnum(Type classType, IEnumerable<Attribute> propertyAttributes, EnumHandling defaultEnumHandling)

Determines whether the an enum property serializes to a string.

public void ApplyType(JsonSchema4 schema)

Applies the type and format to the given schema.