Add schema validation and default value filling for extraction results (#4063)

Co-authored-by: Suchintan <suchintan@users.noreply.github.com>
This commit is contained in:
Mohamed Khalil
2025-11-28 09:10:41 +02:00
committed by GitHub
parent 362309dec3
commit b7ecdaafb7
7 changed files with 851 additions and 2 deletions

View File

@@ -858,3 +858,10 @@ class AzureConfigurationError(AzureBaseError):
class ScriptTerminationException(SkyvernException):
def __init__(self, reason: str | None = None) -> None:
super().__init__(reason)
class InvalidSchemaError(SkyvernException):
def __init__(self, message: str, validation_errors: list[str] | None = None):
self.message = message
self.validation_errors = validation_errors or []
super().__init__(self.message)