You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If we try to parse a TestCase pydantic model by passing a JSON, if there are multiple models with the same property names, we cannot properly parse this.
ValidationError: 14 validation errors for ColumnTestCase
config -> maxValue
extra fields not permitted (type=value_error.extra)
config -> minValue
extra fields not permitted (type=value_error.extra)
config -> maxValue
extra fields not permitted (type=value_error.extra)
config -> minValue
extra fields not permitted (type=value_error.extra)
config -> regex
field required (type=value_error.missing)
config -> maxValue
extra fields not permitted (type=value_error.extra)
config -> minValue
extra fields not permitted (type=value_error.extra)
config -> forbiddenValues
field required (type=value_error.missing)
config -> maxValue
extra fields not permitted (type=value_error.extra)
config -> minValue
extra fields not permitted (type=value_error.extra)
config -> maxValue
value is not a valid integer (type=type_error.integer)
config -> maxValue
extra fields not permitted (type=value_error.extra)
config -> minValue
extra fields not permitted (type=value_error.extra)
config -> maxValue
value is not a valid integer (type=type_error.integer)
Expected behavior
Test definitions should have unique naming in their properties to make sure pydantic properly identifies each class
Affected module
Ingestion
Describe the bug
If we try to parse a
TestCase
pydantic model by passing a JSON, if there are multiple models with the same property names, we cannot properly parse this.To Reproduce
and we'll get
Expected behavior
Test definitions should have unique naming in their properties to make sure pydantic properly identifies each class
Version:
openmetadata-ingestion[docker]==XYZ
]Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: