@@ -290,15 +290,15 @@ def check_mutability_issues(
290
290
cls .check_mutability_issues (original_val , replacement_value )
291
291
292
292
def set_complex_attribute_urns (self ) -> None :
293
- """Navigate through attributes and sub-attributes of type ComplexAttribute, and mark them with a 'attribute_urn ' attribute.
293
+ """Navigate through attributes and sub-attributes of type ComplexAttribute, and mark them with a '_attribute_urn ' attribute.
294
294
295
- 'attribute_urn ' will later be used by 'get_attribute_urn'.
295
+ '_attribute_urn ' will later be used by 'get_attribute_urn'.
296
296
"""
297
297
from .attributes import ComplexAttribute
298
298
from .attributes import is_complex_attribute
299
299
300
300
if isinstance (self , ComplexAttribute ):
301
- main_schema = self .attribute_urn
301
+ main_schema = self ._attribute_urn
302
302
separator = "."
303
303
else :
304
304
main_schema = self .__class__ .model_fields ["schemas" ].default [0 ]
@@ -314,9 +314,9 @@ def set_complex_attribute_urns(self) -> None:
314
314
if attr_value := getattr (self , field_name ):
315
315
if isinstance (attr_value , list ):
316
316
for item in attr_value :
317
- item .attribute_urn = schema
317
+ item ._attribute_urn = schema
318
318
else :
319
- attr_value .attribute_urn = schema
319
+ attr_value ._attribute_urn = schema
320
320
321
321
@field_serializer ("*" , mode = "wrap" )
322
322
def scim_serializer (
0 commit comments