We do not specify the maxLength at the REST API specs level, even if the DB has one defined. Both must match.
Bug 40176 - Add maxLength to the item definition Bug 40177 - Add maxLength to the library definition Bug 40178 - Add maxLength to the patron definition Bug 40179 - Add maxLength to the patron's category definition