File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 14
14
from .config import DEFAULT_API_VERSION , DEFAULT_BASE_URI , DEFAULT_TIMEOUT
15
15
from .iac_models import (
16
16
IaCDiffScanResult ,
17
- IaCDiffScanResultSchema ,
18
17
IaCScanParameters ,
19
18
IaCScanParametersSchema ,
20
19
IaCScanResult ,
@@ -533,7 +532,7 @@ def iac_diff_scan(
533
532
result .status_code = 504
534
533
else :
535
534
if is_ok (resp ):
536
- result = IaCDiffScanResultSchema .from_dict (resp .json ()) # type: ignore
535
+ result = IaCDiffScanResult .from_dict (resp .json ())
537
536
else :
538
537
result = load_detail (resp )
539
538
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class IaCDiffScanEntities(Base):
73
73
74
74
75
75
@dataclass
76
- class IaCDiffScanResult (Base ):
76
+ class IaCDiffScanResult (Base , FromDictMixin ):
77
77
id : str = ""
78
78
type : str = ""
79
79
iac_engine_version : str = ""
@@ -82,6 +82,7 @@ class IaCDiffScanResult(Base):
82
82
)
83
83
84
84
85
- IaCDiffScanResultSchema = marshmallow_dataclass . class_schema (
86
- IaCDiffScanResult , BaseSchema
85
+ IaCDiffScanResultSchema = cast (
86
+ Type [ BaseSchema ], marshmallow_dataclass . class_schema ( IaCDiffScanResult , BaseSchema )
87
87
)
88
+ IaCDiffScanResult .SCHEMA = IaCDiffScanResultSchema ()
You can’t perform that action at this time.
0 commit comments