"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:
parent
88c38e7ff8
commit
9bbd2663f9
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "RoleMapping",
|
||||
"description": "Map principals to roles",
|
||||
"strictObjectIDCoercion": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
|
|
Loading…
Reference in New Issue