Modeling field constraints

Imported from previous forum

This was added for users of the FIX Repository when they define their own implementations (repositories). The idea being that a specific implementation of FIX likely has field length requirements. Similar attributes are provided for repeating groups.

I am interested in modeling field constraints such as string field length (fixed length or min/max length), as well as valid numeric range for a number field, and so forth.

I noticed that the “field” element in FixRepository.xsd has attributes “implMinLength” and “implMaxLength”. Can anyone familiar with the repository tell me whether this was the intended purpose of those attributes? I haven’t found where they are used.

Aside from enum of valid codes, has anyone attempted to model ranges of values or other constraints?