Pydantic was not validating on assignment. As a result, when editing an attribute value during refresh() flow an attribute assignment would not be validated and not converting dicts to model object. More details in linked issue.
(ie, mode_artifacts is a ModelArtifact, when editing this attribute in refresh() flow pydantic would not convert dict to ModelArtifact and just directly assign as dict because validation was not occuring
Issue #, if available: https://github.com/aws/sagemaker-core/issues/23
Description of changes:
Pydantic was not validating on assignment. As a result, when editing an attribute value during
refresh()
flow an attribute assignment would not be validated and not converting dicts to model object. More details in linked issue.ModelArtifact
, when editing this attribute in refresh() flow pydantic would not convert dict toModelArtifact
and just directly assign as dict because validation was not occuringFix by adding
validate_assignment
flagAlso update notebook
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.