Common: Add validation that timeout >= 0 in ICMPScanConfigurationSchema

This commit is contained in:
Shreya Malviya 2022-07-27 16:50:46 +05:30
parent af015c788c
commit d8bccde276
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class ScanTargetConfigurationSchema(Schema):
class ICMPScanConfigurationSchema(Schema): class ICMPScanConfigurationSchema(Schema):
timeout = fields.Float() timeout = fields.Float(validate=validate.Range(min=0))
@post_load @post_load
def _make_icmp_scan_configuration(self, data, **kwargs): def _make_icmp_scan_configuration(self, data, **kwargs):