couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: underscores in json keys
Date Wed, 26 Aug 2009 14:37:38 GMT
On Wed, Aug 26, 2009 at 10:33 AM, francisco
treacy<francisco.treacy@gmail.com> wrote:
> Hi,
>
> I'm storing documents like this in CouchDB 0.9
>
> {"_id":"_design/surf","_rev":"1-455975032","_type": "mytype" }
>
> without any problem.
>
> However apparently it does not work on CouchDB 0.9.1:
>
> Response while PUTting:  HTTP 500:
> {"error":"doc_validation","reason":"Bad special document member:
> _type"}
>
> Could you tell me what the policy is for underscored keys, is it
> allowed or not? Has this changed between releases?
> I would like to keep my Scala CouchDB client up-to-date.
>

The 0.9.0 behaviour is a bug. You should be able to see it by trying
to store an integer value like {"_type": 2} which should be rejected.

> Thank you,
>
> Francisco
>

HTH,
Paul Davis

Mime
View raw message