[ckan-dev] JSON schema?

Rufus Pollock rufus.pollock at okfn.org
Fri Aug 19 15:02:59 UTC 2011


On 17 August 2011 16:41, Florian Marienfeld
<florian.marienfeld at fokus.fraunhofer.de> wrote:
> Hey,
>
> I was just wondering if a JSON Schema file exists for the CKAN API.
> while using the API, it would be nice to know if a JSON item like a
> package is valid.

I'm not sure we have anything that is *exactly* what you want but we
do validators for the dict obtained from the json in the logic layer.
Specifically, here's the default package dict schema:

<https://bitbucket.org/okfn/ckan/src/156e0a93776c/ckan/logic/schema.py#cl-70>

Does this help?

Rufus




More information about the ckan-dev mailing list