Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Data validation #5

Open
sirex opened this issue Oct 14, 2015 · 0 comments
Open

Data validation #5

sirex opened this issue Oct 14, 2015 · 0 comments

Comments

@sirex
Copy link
Owner

sirex commented Oct 14, 2015

Probably the best choice is to use Colander. Colander does not preserve primitive JSON types when serializing, see Pylons/colander#80 , so instead of importing things directly from Colander, something like this could be used:

import databot.schema as ds

Here ds would provide all Colander classes and would override primitive types to support serialization preserving primitive types.

bot.define will accept Colander SchemaNode as second argument.

And for the semantic information, probably something like JSON-LD could be used and this could be provided as third argument in bot.defined called context.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant