Skip to content

Commit 5c79a7d

Browse files
committed
[client] Adapt contracts outputs (#86)
1 parent b1c2787 commit 5c79a7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyobas/contracts/contract_config.py

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ContractOutputType(str, Enum):
3636
Text: str = "text"
3737
Number: str = "number"
3838
Port: str = "port"
39+
PortsScan: str = "portscan"
3940
IPv4: str = "ipv4"
4041
IPv6: str = "ipv6"
4142

@@ -70,6 +71,8 @@ class ContractElement(ABC):
7071
label: str
7172
type: str = field(default="", init=False)
7273
mandatoryGroups: List[str] = None
74+
mandatoryConditionField: str = None
75+
mandatoryConditionValue: str = None
7376
linkedFields: List["ContractElement"] = field(default_factory=list)
7477
linkedValues: List[str] = field(default_factory=list)
7578
mandatory: bool = False
@@ -95,6 +98,7 @@ class ContractOutputElement(ABC):
9598
type: str
9699
field: str
97100
labels: List[str]
101+
isFindingCompatible: bool
98102
isMultiple: bool
99103

100104

0 commit comments

Comments
 (0)