Hi. I know that Couchbase is NoSQL, and NoSQL is schema-on-read, not schema-on-write. I know this has many advantages. But suppose I want to enforce a particular JSON schema on all docs I write to a certain bucket, or docs with a certain “type” field?
What is the standard way to do this in Couchbase? Just have the application code use something like (https://github.com/fge/json-schema-validator) before writing a doc to Couchbase? Any more transparent, built-in tools?