Class JsonSchemaProperty
Serializable class. Represents a single property in a JSON schema.
Inherited Members
Namespace: Glitch9.IO.Json.Schema
Assembly: Glitch9.IO.dll
Syntax
[Serializable]
public class JsonSchemaProperty
Constructors
| Edit this page View SourceJsonSchemaProperty()
Declaration
public JsonSchemaProperty()
JsonSchemaProperty(string, Type)
Declaration
public JsonSchemaProperty(string name, Type paramType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| Type | paramType |
Properties
| Edit this page View SourceDescription
Parameter description.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Element
For array types, defines the element type.
Declaration
public JsonSchemaProperty Element { get; set; }
Property Value
| Type | Description |
|---|---|
| JsonSchemaProperty |
EnumValues
If the parameter is an enum, its valid values.
Declaration
public string[] EnumValues { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |
IsRequired
Whether the parameter is required.
Declaration
public bool IsRequired { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
The parameter name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
The JSON-compatible data type.
Declaration
public JsonSchemaType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| JsonSchemaType |