ckanext-scheming icon indicating copy to clipboard operation
ckanext-scheming copied to clipboard

Failures against master because of OneOf changes

Open amercader opened this issue 5 years ago • 1 comments

The OneOf validator was changed in https://github.com/ckan/ckan/pull/5060 to replace the formencode one, but the output when there is a validation error is slightly different:

New: u"Value must be one of [u'bactrian', u'hybrid', u'f2hybrid', u'snowwhite', u'black']"

Old "Value must be one of: bactrian; hybrid; f2hybrid; snowwhite; black (not 'rocker')"

This causes the validation tests errors for sure, I'm not sure about the form functional tests but they could also be related

amercader avatar Jan 15 '20 13:01 amercader

@amercader let's fix core, including python reprs in messages for end users is worse than what we had before.

wardi avatar Jun 26 '20 14:06 wardi