Sisk

Class

JsonContentTypeHandler

Namespace
Sisk.Documenting.Content
Assembly
Sisk.Documenting.dll

Provides JSON example generation for types used in documentation.

C#
public class JsonContentTypeHandler : IExampleBodyTypeHandler, IExampleParameterTypeHandler, IContentSchemaTypeHandler

Inheritance #

object ← JsonContentTypeHandler

Implements #

IExampleBodyTypeHandler, IExampleParameterTypeHandler, IContentSchemaTypeHandler

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
JsonContentTypeHandler(IJsonTypeInfoResolver, JsonSerializerOptions)Initializes a new instance of the JsonContentTypeHandler class with the specified type resolver and serializer options.
JsonContentTypeHandler(JsonSerializerOptions)Initializes a new instance of the JsonContentTypeHandler class with the specified serializer options and a default type resolver.
JsonContentTypeHandler()Initializes a new instance of the JsonContentTypeHandler class with default serializer options and type resolver.

Properties #

NameDescription
EnumerationExampleCountGets or sets the number of items to include when generating examples for enumerable types.
IncludeDescriptionAnnotationsGets or sets a value indicating whether to include XML documentation comments in the generated examples.
SharedGets the shared singleton instance of JsonContentTypeHandler.

Methods #

NameDescription
GetBodyExampleForType(Type)Generates a JSON body example for the specified type.
GetJsonSchemaForType(Type)Generates a JSON schema that describes the specified type.
GetParameterExamplesForType(Type)Generates parameter examples for the specified type.

Type to search the documentation and the API reference.