Class JsonSchemaPropertyAttribute
Inheritance
JsonSchemaPropertyAttribute
Assembly: Glitch9.IO.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class JsonSchemaPropertyAttribute : Attribute
Constructors
|
Edit this page
View Source
JsonSchemaPropertyAttribute(string, string)
Declaration
public JsonSchemaPropertyAttribute(string name, string description = null)
Parameters
Properties
|
Edit this page
View Source
AnyOf
Declaration
public List<JsonSchema> AnyOf { get; set; }
Property Value
|
Edit this page
View Source
Description
Declaration
public string Description { get; set; }
Property Value
|
Edit this page
View Source
Enum
Declaration
public string[] Enum { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public Dictionary<string, object> Extras { get; set; }
Property Value
|
Edit this page
View Source
MaxItems
Declaration
public int? MaxItems { get; set; }
Property Value
|
Edit this page
View Source
Maximum
Declaration
public int? Maximum { get; set; }
Property Value
|
Edit this page
View Source
MinItems
Declaration
public int? MinItems { get; set; }
Property Value
|
Edit this page
View Source
Minimum
Declaration
public int? Minimum { get; set; }
Property Value
|
Edit this page
View Source
Name
Declaration
public string Name { get; set; }
Property Value
|
Edit this page
View Source
Nullable
Declaration
public bool? Nullable { get; set; }
Property Value
|
Edit this page
View Source
Required
Declaration
public bool Required { get; set; }
Property Value
|
Edit this page
View Source
Title
Declaration
public string Title { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
protected T GetExtra<T>(string key, T defaultValue)
Parameters
| Type |
Name |
Description |
| string |
key |
|
| T |
defaultValue |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
protected void SetExtra(string key, object value)
Parameters
Extension Methods