コード例 #1
0
        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);
        }
コード例 #2
0
 public TypeSchema(TypeSchemaKey key, JSchema schema)
 {
     Key    = key;
     Schema = schema;
 }