rjack/yata — Issue #4: In shows and lists doc fields should be treated as optional
Author: rjack
Created: 2011-10-23 10:38:12+00:00
State: open

http://localhost:5984/yata/_design/yata/_show/item/c7839cbfca43e7f077c3d2d8ae000dbe

gives

{"error":"render_error","reason":"function raised error: (new TypeError(\"doc.description is undefined\"

Because the underlying doc has no `description` field.

There is no document scheme in YATA, so all code should treat fields as optional. If this is too difficult, some required fields can be defined.