[ckan-changes] [okfn/ckan] f0abac: [#473] Fix package_search validation.

GitHub noreply at github.com
Sat Mar 23 17:23:12 UTC 2013


  Branch: refs/heads/473-consistent-api-validation
  Home:   https://github.com/okfn/ckan
  Commit: f0abac75e8e722512fabe2befe823b75f7c868fa
      https://github.com/okfn/ckan/commit/f0abac75e8e722512fabe2befe823b75f7c868fa
  Author: Dominik Moritz <domoritz at gmail.com>
  Date:   2013-03-23 (Sat, 23 Mar 2013)

  Changed paths:
    M ckan/logic/action/get.py
    M ckan/logic/schema.py
    M ckan/tests/logic/test_action.py

  Log Message:
  -----------
  [#473] Fix package_search validation.
The problem was that `facet.field` is not always a list of strings but sometimes a string of a python list of strings. Furthermore, needless parameters are reported in search and not in the validation step so that they are reported as SearchQueryErrors and not ValidationErrors.





More information about the ckan-changes mailing list