[ckan-dev] Validation of resources

Ian Ward ian at excess.org
Thu Oct 10 15:22:36 UTC 2013


This does work for me. I add a validators to a dict stored in
'resources' in the dataset schema, and each one is called for every
resource field, including extra ones I've added, just like with the
dataset fields.

Can you post the code you're working on?

On Thu, Oct 10, 2013 at 10:57 AM, Vivek Sunder <sviveksunder at gmail.com> wrote:
> Hi,
>
> I forgot to mention what release version I was on in my earlier post -
> release-v2.0. I just noticed that my validation method does get called
> for resource creation, however, the data is not be found under the key
> 'resources' of the data object i receive. Instead I find this
> information under '__junk'. For draft datasets this contains just the
> resource that is being created, and for non-draft datasets this
> contains the package metadata, and all the resources, including the
> one that is being created, appended at the very end.
>
> My question then is if it is an acceptable way to validate resources
> being created/updated using the data under this '__junk' key. As I
> mentioned, I don't see any data under the 'resources' key itself.
>
> Thanks,
> Vivek
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev




More information about the ckan-dev mailing list