Open agmcleod opened 1 week ago
Ah so I misunderstood how it's setting up the Scimitar::Group & not my own model. Though i think it's getting confused with me passing an example operation I got from Okta.
Based on the code for the resource controller, I'm thinking my test is invalid, but Okta specifies this could be PATCH or PUT depending on the configuration. https://developer.okta.com/docs/api/openapi/okta-scim/guides/scim-20/#update-a-specific-group-name. I was trying the operations example they have there against the replace action
Hi there. I'm working on integrating this gem with an internal rails service, and running into an issue as I'm setting up tests to confirm the functionality we need.
I'm getting the error here: https://github.com/RIPAGlobal/scimitar/blob/main/app/controllers/scimitar/resources_controller.rb#L183, as the validation fails when the
name
field I have on my model is empty.In my test i'm sending the request as so:
The group model contains a
name
field, and I set it up in the scim attributes map method to correspond name & displayName. However since thewith_scim_resource
doesn't map the parameters being passed to the constructor of the type returned bystorage_class()
, the validation then fails. Is there something I'm missing here? I can't seem to find anything in the mock example app you've provided.The scim attributes map for reference: