diff --git a/socketdev/fullscans/__init__.py b/socketdev/fullscans/__init__.py index 01685d0..68175ae 100644 --- a/socketdev/fullscans/__init__.py +++ b/socketdev/fullscans/__init__.py @@ -709,8 +709,6 @@ def create_params_string(self, params: dict) -> str: def get(self, org_slug: str, params: dict, use_types: bool = False) -> Union[dict, GetFullScanMetadataResponse]: params_arg = self.create_params_string(params) - Utils.validate_integration_type(params.get("integration_type", "")) - path = "orgs/" + org_slug + "/full-scans" + str(params_arg) response = self.api.do_request(path=path) @@ -729,9 +727,11 @@ def get(self, org_slug: str, params: dict, use_types: bool = False) -> Union[dic return {} def post(self, files: list, params: FullScanParams, use_types: bool = False) -> Union[dict, CreateFullScanResponse]: + Utils.validate_integration_type(params.integration_type if params.integration_type else "api") org_slug = str(params.org_slug) params_dict = params.to_dict() params_dict.pop("org_slug") + params_arg = self.create_params_string(params_dict) path = "orgs/" + org_slug + "/full-scans" + str(params_arg) diff --git a/socketdev/version.py b/socketdev/version.py index 8cb37b5..e5d18b2 100644 --- a/socketdev/version.py +++ b/socketdev/version.py @@ -1 +1 @@ -__version__ = "2.0.8" +__version__ = "2.0.9"