Skip to content

Reserved Subfield

Edit page

A field’s specification takes only the reserved words of its type; any other name that starts with _ is refused with 400 Bad Request (src/database/schema.cc, “Field … is not valid”).

PUT /test/reserved_subfield/doc
{
"name": {
"_type": "text",
"_reserved": "this is reserved, should fail"
}
}