Search Results for

    Show / Hide Table of Contents

    Class JsonSchemaConverter

    Inheritance
    object
    JsonConverter
    JsonConverter<JsonSchema>
    JsonSchemaConverter
    Inherited Members
    JsonConverter<JsonSchema>.WriteJson(JsonWriter, object, JsonSerializer)
    JsonConverter<JsonSchema>.ReadJson(JsonReader, Type, object, JsonSerializer)
    JsonConverter<JsonSchema>.CanConvert(Type)
    JsonConverter.CanRead
    JsonConverter.CanWrite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Json.Schema
    Assembly: Glitch9.IO.dll
    Syntax
    public sealed class JsonSchemaConverter : JsonConverter<JsonSchema>

    Constructors

    | Edit this page View Source

    JsonSchemaConverter(TextCase, bool)

    Declaration
    public JsonSchemaConverter(TextCase typeStringCase, bool includeExtras = true)
    Parameters
    Type Name Description
    TextCase typeStringCase
    bool includeExtras

    Fields

    | Edit this page View Source

    includeExtras

    Declaration
    public readonly bool includeExtras
    Field Value
    Type Description
    bool
    | Edit this page View Source

    typeStringCase

    Declaration
    public readonly TextCase typeStringCase
    Field Value
    Type Description
    TextCase

    Methods

    | Edit this page View Source

    ReadJson(JsonReader, Type, JsonSchema, bool, JsonSerializer)

    Reads the JSON representation of the object.

    Declaration
    public override JsonSchema ReadJson(JsonReader reader, Type objectType, JsonSchema existingValue, bool hasExistingValue, JsonSerializer serializer)
    Parameters
    Type Name Description
    JsonReader reader

    The Newtonsoft.Json.JsonReader to read from.

    Type objectType

    Type of the object.

    JsonSchema existingValue

    The existing value of object being read. If there is no existing value then null will be used.

    bool hasExistingValue

    The existing value has a value.

    JsonSerializer serializer

    The calling serializer.

    Returns
    Type Description
    JsonSchema

    The object value.

    Overrides
    JsonConverter<JsonSchema>.ReadJson(JsonReader, Type, JsonSchema, bool, JsonSerializer)
    | Edit this page View Source

    WriteJson(JsonWriter, JsonSchema, JsonSerializer)

    Writes the JSON representation of the object.

    Declaration
    public override void WriteJson(JsonWriter writer, JsonSchema value, JsonSerializer serializer)
    Parameters
    Type Name Description
    JsonWriter writer

    The Newtonsoft.Json.JsonWriter to write to.

    JsonSchema value

    The value.

    JsonSerializer serializer

    The calling serializer.

    Overrides
    JsonConverter<JsonSchema>.WriteJson(JsonWriter, JsonSchema, JsonSerializer)

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation