NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.