Superstruct – Simple & Composable Way to Validate Data in Javascript

10/23/2018
javascript , API , validation , data validation , validate

Superstruct – Simple & Composable Way to Validate Data in Javascript

Superstruct makes it easy to define interfaces and then validate JavaScript data against them. It's type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API.

But Superstruct is designed for validating data at runtime, so it throws detailed runtime errors for you or your end users. This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API. But it can even be used to validate internal data structures at runtime when needed.

Leave a Reply

If you leave a message for the first time on this site, the audit will need to display the contents!