Add metadata: min-length, max-length and value-type