ckan / ckan/ckanext-validation

Add a new `resource_table_schema_infer` action

Open
#76 0 comments 0 reactions 1 assignee Claimed by @aivuk View on GitHub
Schema Editor
Dominant language
Python
Stars
30
Forks
33
PR merge metrics
No merged PRs in 30d

Description

This action returns the inferred Table Schema from an existing resource file (upload or link)

Details:

* Name:
* Auth: Should defer to `resource_create`
* Params:
* `resource_id`: a resource uuid
* `store_schema`: a boolean flag to determine if the inferred schema should be stored to the resource (using `resource_patch`). Defaults to True (I have no strong opinions either way)
* Output: let's return the generated Table Schema in a separate key in case we need to add extra fields to the response: `{"schema": }`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.