Common: Add maximum depth validation to PropagationConfigurationSchema

This commit is contained in:
Shreya Malviya 2022-07-27 18:15:33 +05:30
parent 2ea3a27263
commit c53d41645c
1 changed files with 1 additions and 1 deletions

View File

@ -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)