"strictObjectIDCoercion": true on role-mapping.json

How the json file is, loopback developers are currently unable to query RoleMappings by principalId, since most connectors (mongodb in my case) will overwrite the type of the principalId for the query to an ObjectId, which is incorrect behavior.

principalId is a string, as per this definition. So having the query cast to an ObjectId always returns no matches.
This commit is contained in:
Colin (Johnson) Schmidt 2017-02-09 15:40:35 -08:00 committed by GitHub
parent 88c38e7ff8
commit 9bbd2663f9
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{
"name": "RoleMapping",
"description": "Map principals to roles",
"strictObjectIDCoercion": true,
"properties": {
"id": {
"type": "string",