Allow extra fields from clients
https://github.com/python-scim/scim2-models/blob/00031eb0a4fa41c6f57631600021bf3019351976/scim2_models/base.py#L413
For server implementations clients often send fields not permitted or defined in the model This is unfortunate however for compatibility we need to allow but ignore fields we don't support
Interesting.
In the end, depending on the context, one might want the extra param to be lax (for servers or clients analyzing incoming data) or to be strict (when servers or clients produce data to be sent, or for compliance testers). I wonder if Pydantic would allow this parameter to be dynamic.
I opened a ticket upstream. https://github.com/pydantic/pydantic/issues/11057
Any ideas for how to workaround this issue in the meantime? We are bumping into the same issue (we are getting close to actually releasing our SCIM feature for GA and our testing with different IDPs)
For the record, there are PRs tackling this at Pydantic. I guess on the short term a convenient thing would be to set the behavior with an environment var, but I fear to introduce hotfixes like this, then rework the whole thing on sane basis and break compatibility
It looks like this is possible to add an extra parameter during validation with Pydantic 2.12
https://docs.pydantic.dev/2.12/concepts/models/#extra-data
@ryanfaircloth @vpatov can you confirm this is a solution for you?