Skip to content

Runtime validation of documents JSON via zod_gen #904

@kasbah

Description

@kasbah

If we used zod_gen in notebook-types we could generate code to do runtime validation of our JSON in JS. This would help us avoid problems like #902 and we could be more confident about what's in our Automerge docs in general.

Since the frontend edits these documents directly it makes me uneasy that what is sending is only checked at compile time and not at runtime.

What do you think? @jmoggr @epatters

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfrontendTypeScript frontend and Rust-wasm integrations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions