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:

1 2 3 4 5 "properties": { "$oid": { "type": "string" } },

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

Status

Assignee

Andrea Di Cesare

Reporter

Andrea Di Cesare

Labels

None

Fix versions

Affects versions

3.1.2

Priority

Major
Configure