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); }
public TypeSchema(TypeSchemaKey key, JSchema schema) { Key = key; Schema = schema; }