python-scim / scim2-models

SCIM resources serialization and validation with Pydantic
https://scim2-models.readthedocs.io
Apache License 2.0
11 stars 3 forks source link

Mark complex sub-attributes URNs at model definition #42

Closed azmeuk closed 4 months ago

azmeuk commented 5 months ago

Currently, complex sub-attributes are given a private URN on model validation.

https://github.com/yaal-coop/scim2-models/blob/d32a5c2a4b62c27eddba12c94d6ab53bc0de1974/scim2_models/base.py#L518-L523

Those URNs are used later in model validation:

https://github.com/yaal-coop/scim2-models/blob/d32a5c2a4b62c27eddba12c94d6ab53bc0de1974/scim2_models/base.py#L595-L600

We should investigate how to mark URNs at model definition instead, for example by using things like __setname_\?

azmeuk commented 4 months ago

Fixed by #48