incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Declarative validation of recursive documents
Date Tue, 13 Sep 2011 05:41:29 GMT

On Sep 12, 2011, at 7:37 PM, Daniel Itaboraí wrote:

It seems to me that it would be useful to be able to declaratively specify
this tree like schema to validate complex documents, something like the
following

   Doc(
       Field('left', Recursive()),
       Field('value', Number()),

It looks as though you’re on the way to re-inventing JSON Schemas <http://json-schema.org/>
:) I just ran into that last weekend and was thinking it’d be useful to use with CouchDB.

—Jens

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message