response code 500 creating a schema with a property definition whose name is a bson type

Description

creating a schema that contains a bson type property name:

lead to a NPE. The problem is that the json parser expects $oid to be an object id, so the parsing fails.

The response code should be 406 Not Acceptable. To create the schema, just underscore prefix the bson type, e.g. _$oid

Environment

None

Assignee

Andrea Di Cesare

Reporter

Andrea Di Cesare

Labels

None

Fix versions

Affects versions

Priority

Major
Configure