Skip to content

Schema on Write #23

@ghost

Description

Hi there,

This is more of a question than an issue, but it looks like the schema being applied to components with defcomponent[k] is done on the read, i.e. when you perform a build, whatever data happens to be in a given cursor will be validated against a schema.

Is there any to validate the data going in on the write? That is, on the transact/update call so that the offending party can be caught more easily than having to backtrack from the validation error on read. It's possible I'm missing something of course and maybe this already occurs somehow, but I was hoping for some clarification or discussion on the issue and what the thought process was to implement it in its current form.

Thanks,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions