Closed NJannasch closed 2 years ago
:tada: Thanks for opening your first issue here! Welcome to the community!
Thank you for catching this. The fix will be in 22.3.2.
We published the fix. Thanks again for pointing out the issue and giving a thoughtful suggested fix.
Describe the problem
The REST API Endpoint /user/me returns MultiRoleUserProfile instead of UserProfileModel.
In the documentation the expected object has the attribute roleId but roleIds is returned: https://prisma.pan.dev/api/cloud/cspm/user-profile#operation/get-my-profile
How to reproduce
Suggested fix
Update the returned object in the OpenAPI spec from UserProfileModel towards MultiRoleUserProfile or make use of oneOf, anyOf, allOf as described in the openapi specification: https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/