C# Class SharpRaven.UnitTests.SchemaHelper

Mostra file Open project: getsentry/raven-csharp Class Usage Examples

Public Methods

Method Description
GenerateSchema ( Type type ) : JsonSchema
GetSchema ( ) : JsonSchema
GetSchemaPath ( ) : string

Private Methods

Method Description
GetEnumValues ( Type enumType, PropertyInfo property ) : IEnumerable
GetProperty ( Type type, JsonSchema>.KeyValuePair jsProperty ) : PropertyInfo
MapSchemaTypes ( this schema, Type type ) : JsonSchema

Maps types from the specified type to the schema and returns the modified schema.

Shamefully stolen from CodePlex.

Method Details

GenerateSchema() public static method

public static GenerateSchema ( Type type ) : JsonSchema
type System.Type
return Newtonsoft.Json.Schema.JsonSchema

GetSchema() public static method

public static GetSchema ( ) : JsonSchema
return Newtonsoft.Json.Schema.JsonSchema

GetSchemaPath() public static method

public static GetSchemaPath ( ) : string
return string