MongoDB World 2019: Just-in-time Validation with JSON Schema
MongoDB is famous for its flexible schema. This feature is invaluable to developer productivity, enabling applications to evolve naturally with changing requirements without the need to revisit the schema designs throughout multiple layers of the stack. However, in any organization, a number of factors ranging from risk mitigation to politics may drive the need to enforce a more rigid schema. The way to address this need is through JSON Schema, which is an industry standard for validating JSON documents. In this talk, I will provide an overview of how to implement JSON Schema in MongoDB. I will also outline how teams can introduce JSON schema validation at just the right time in the lifecycle of their applications, balancing the benefits of developer productivity with requirements for strict schema enforcement.