Search Results for

    Show / Hide Table of Contents

    Class JsonSchemaProperty

    Serializable class. Represents a single property in a JSON schema.

    Inheritance
    object
    JsonSchemaProperty
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Json.Schema
    Assembly: Glitch9.IO.dll
    Syntax
    [Serializable]
    public class JsonSchemaProperty

    Constructors

    | Edit this page View Source

    JsonSchemaProperty()

    Declaration
    public JsonSchemaProperty()
    | Edit this page View Source

    JsonSchemaProperty(string, Type)

    Declaration
    public JsonSchemaProperty(string name, Type paramType)
    Parameters
    Type Name Description
    string name
    Type paramType

    Properties

    | Edit this page View Source

    Description

    Parameter description.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Element

    For array types, defines the element type.

    Declaration
    public JsonSchemaProperty Element { get; set; }
    Property Value
    Type Description
    JsonSchemaProperty
    | Edit this page View Source

    EnumValues

    If the parameter is an enum, its valid values.

    Declaration
    public string[] EnumValues { get; set; }
    Property Value
    Type Description
    string[]
    | Edit this page View Source

    IsRequired

    Whether the parameter is required.

    Declaration
    public bool IsRequired { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Name

    The parameter name.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Type

    The JSON-compatible data type.

    Declaration
    public JsonSchemaType Type { get; set; }
    Property Value
    Type Description
    JsonSchemaType

    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)
    JsonSchemaPropertyExtensions.ToJsonSchema(JsonSchemaProperty)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation