Skip to content

Commit

Permalink
fix: remove SkipValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Jan 7, 2025
1 parent 5708ea3 commit b7eed9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions anta/result_manager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from enum import Enum
from typing import Any

from pydantic import BaseModel, InstanceOf, SerializeAsAny, SkipValidation
from pydantic import BaseModel, InstanceOf, SerializeAsAny


class AntaTestStatus(str, Enum):
Expand Down Expand Up @@ -99,7 +99,7 @@ class AtomicTestResult(BaseTestResult):

_parent: TestResult
description: str
inputs: SkipValidation[SerializeAsAny[InstanceOf[BaseModel]] | None] = None
inputs: SerializeAsAny[InstanceOf[BaseModel] | None] = None
result: AntaTestStatus = AntaTestStatus.UNSET
messages: list[str] = []

Expand Down Expand Up @@ -157,7 +157,7 @@ class TestResult(BaseTestResult):
test: str
categories: list[str]
description: str
inputs: SkipValidation[SerializeAsAny[InstanceOf[BaseModel]] | None] = None # A TestResult inputs can be None in case of inputs validation error
inputs: SerializeAsAny[InstanceOf[BaseModel]] | None = None # A TestResult inputs can be None in case of inputs validation error
custom_field: str | None = None
result: AntaTestStatus = AntaTestStatus.UNSET
messages: list[str] = []
Expand Down

0 comments on commit b7eed9e

Please sign in to comment.