private static TypeSchemaKey CreateKey(Required valueRequired, JsonProperty memberProperty, JsonContract contract)
        {
            int?minLength = DataAnnotationHelpers.GetMinLength(memberProperty);
            int?maxLength = DataAnnotationHelpers.GetMaxLength(memberProperty);

            TypeSchemaKey key = new TypeSchemaKey(contract.UnderlyingType, valueRequired, minLength, maxLength);

            return(key);
        }
Ejemplo n.º 2
0
 public TypeSchema(TypeSchemaKey key, JSchema schema)
 {
     Key    = key;
     Schema = schema;
 }