[ckan-dev] JSON schema?

Florian Marienfeld florian.marienfeld at fokus.fraunhofer.de
Mon Aug 22 09:31:49 UTC 2011


This looks good! is there an easy way to use this in a ckanclient script?

On 19.08.11 17:02, Rufus Pollock wrote:
> 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
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev





More information about the ckan-dev mailing list