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