Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Docs saved to CBL should not contain any "_"-prefixed properties #1490

@snej

Description

@snej

Don't put properties like _id, _deleted, etc. into documents. CBL 1.x would reject them as invalid data; CBL 2 treats them like any other properties, but if you use names that conflict with ones used by SG's REST API, it will cause undefined behavior when SG tries to add those properties in its JSON responses.

doc_body["_id"] = doc_id

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions