Skip to content

Interested in validators? #128

@ef4

Description

@ef4

We have written validation code that follows the exact structure of these types, using the new typescript asserts feature. It's great for safely casting documents that came over the network into the types from this package.

Since the validators need to match exactly with how the types are defined, I think it would be appropriate to upstream the validators into this package. Do you agree?

If so I can make a PR adding the validators. They would live in a separate module inside this package, so they wouldn't add anything to apps that don't choose to import from jsonapi-typescript/validators.

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