Class JsonSchema
Contains JSON schema.
Inheritance
System.Object
JsonSchema
Namespace: FastReport.Utils.Json
Assembly: FastReport.Base.dll
Syntax
public class JsonSchema
Properties
DataType
Gets data type.
Declaration
public Type DataType { get; }
Property Value
| Type | Description |
|---|---|
| System.Type |
Description
Gets or sets the description.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Items
Gets or sets items.
Declaration
public JsonSchema Items { get; set; }
Property Value
| Type | Description |
|---|---|
| JsonSchema |
Properties
Gets a dictionary of properties.
Declaration
public Dictionary<string, JsonSchema> Properties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, JsonSchema> |
Type
Gets or sets type string.
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
FromJson(Object)
Gets a schema from an object.
Declaration
public static JsonSchema FromJson(object json)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | json | Object. |
Returns
| Type | Description |
|---|---|
| JsonSchema | The schema instance. |
Load(JsonObject)
Gets a schema from JSON object.
Declaration
public static JsonSchema Load(JsonObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonObject | obj | JSON object. |
Returns
| Type | Description |
|---|---|
| JsonSchema | The schema instance. |
Save(JsonObject)
Saves the schema to a JSON object.
Declaration
public void Save(JsonObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonObject | obj | JSON object. |