Skip to content

Commit

Permalink
fix schema errors on empty / missing schemas (1.15) (#2852)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Klopper <[email protected]>
Co-authored-by: ammar92 <[email protected]>
  • Loading branch information
3 people authored Apr 15, 2024
1 parent 223361d commit fd9d028
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion boefjes/boefjes/plugins/kat_manual/csv/normalizer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"id": "kat_manual_csv",
"consumes": ["manual/csv"],
"produces": [
"OOIType"
"OOI"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"id": "kat_manual_ooi",
"consumes": ["manual/ooi"],
"produces": [
"OOIType"
"OOI"
]
}
2 changes: 1 addition & 1 deletion boefjes/boefjes/plugins/kat_nuclei_cve/normalizer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"boefje/nuclei-cve"
],
"produces": [
"Findings",
"Finding",
"CVEFindingType"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"boefje/nuclei-exposed-panels"
],
"produces": [
"Findings",
"Finding",
"KATFindingType"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"boefje/nuclei-takeover"
],
"produces": [
"Findings",
"Finding",
"KATFindingType"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"boefje/snyk-finding-types"
],
"produces": [
"SNYKFindingType"
"SnykFindingType"
],
"enabled": true
}
2 changes: 2 additions & 0 deletions rocky/katalogus/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def get_plugin_schema(self, plugin_id) -> dict | None:
response.raise_for_status()

schema = response.json()
if not schema:
return None

try:
Draft202012Validator.check_schema(schema)
Expand Down

0 comments on commit fd9d028

Please sign in to comment.