forked from p15670423/monkey
Common: Add maximum depth validation to PropagationConfigurationSchema
This commit is contained in:
parent
2ea3a27263
commit
c53d41645c
|
@ -135,7 +135,7 @@ class ExploitationConfigurationSchema(Schema):
|
|||
|
||||
|
||||
class PropagationConfigurationSchema(Schema):
|
||||
maximum_depth = fields.Int()
|
||||
maximum_depth = fields.Int(validate=validate.Range(min=1))
|
||||
network_scan = fields.Nested(NetworkScanConfigurationSchema)
|
||||
exploitation = fields.Nested(ExploitationConfigurationSchema)
|
||||
|
||||
|
|
Loading…
Reference in New Issue