File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
.generator/src/generator/templates Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -393,16 +393,6 @@ class ModelNormal(OpenApiModel):
393
393
def __init__(self, kwargs):
394
394
super().__init__(kwargs)
395
395
for var_name, var_value in kwargs.items():
396
- if (
397
- var_name not in self.attribute_map
398
- and self._configuration is not None
399
- and self._configuration.discard_unknown_keys
400
- and self.additional_properties_type is not None
401
- ):
402
- if self._spec_property_naming:
403
- # If it's returned from the API, store it if we need to send it back
404
- self.__dict__["_data_store"][var_name] = var_value
405
- continue
406
396
setattr(self, var_name, var_value)
407
397
if not self._spec_property_naming and var_name in self.read_only_vars:
408
398
raise ApiAttributeError(f"`{var_name}` is a read-only attribute.")
Original file line number Diff line number Diff line change @@ -406,16 +406,6 @@ def __eq__(self, other):
406
406
def __init__ (self , kwargs ):
407
407
super ().__init__ (kwargs )
408
408
for var_name , var_value in kwargs .items ():
409
- if (
410
- var_name not in self .attribute_map
411
- and self ._configuration is not None
412
- and self ._configuration .discard_unknown_keys
413
- and self .additional_properties_type is not None
414
- ):
415
- if self ._spec_property_naming :
416
- # If it's returned from the API, store it if we need to send it back
417
- self .__dict__ ["_data_store" ][var_name ] = var_value
418
- continue
419
409
setattr (self , var_name , var_value )
420
410
if not self ._spec_property_naming and var_name in self .read_only_vars :
421
411
raise ApiAttributeError (f"`{ var_name } ` is a read-only attribute." )
You can’t perform that action at this time.
0 commit comments