C# Class SharpRaven.UnitTests.SchemaHelper

Afficher le fichier Open project: getsentry/raven-csharp Class Usage Examples

Méthodes publiques

Méthode Description
GenerateSchema ( Type type ) : JsonSchema
GetSchema ( ) : JsonSchema
GetSchemaPath ( ) : string

Private Methods

Méthode 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 méthode

public static GenerateSchema ( Type type ) : JsonSchema
type System.Type
Résultat Newtonsoft.Json.Schema.JsonSchema

GetSchema() public static méthode

public static GetSchema ( ) : JsonSchema
Résultat Newtonsoft.Json.Schema.JsonSchema

GetSchemaPath() public static méthode

public static GetSchemaPath ( ) : string
Résultat string