InstituteforDiseaseModeling / ckan

This is a fork of the official CKAN repository. This fork is being used for internal IDM purposes and not for public distribution. CKAN is an open-source DMS (data management system) for powering data hubs and data portals. CKAN makes it easy to publish, share and use data. It powers datahub.io, catalog.data.gov and europeandataportal.eu/data/en/dataset among many other sites.
http://ckan.org/
Other
0 stars 1 forks source link

Boolean fields request_access and spatial_mode are stored as lists #63

Open DLukacevic-IDM opened 5 years ago

DLukacevic-IDM commented 5 years ago

Submitting bool or string values via API returns an error:

ckan.logic.ValidationError: {u'request_access': [u'expecting list of strings'], u'__type': u'Validation Error', u'spatial_mode': [u'expecting list of strings']}

This is so because multi checkbox control was used to add a single checkbox to UI (for each of the boolean fields). So, the error is showing because multi checkbox control validation expects a list of values.

DLukacevic-IDM commented 5 years ago

I don't see a straightforward way to resolve this. I will leave this for Phase 2.