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

Data validation #5

@sirex

Description

@sirex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions