Skip to content

Commit

Permalink
Fix: OpenAPI specification
Browse files Browse the repository at this point in the history
There was an error in the Port Range specification for a scan Target, in which only a single range object instead of an array of ranges was specified.
  • Loading branch information
Kraemii committed Aug 25, 2023
1 parent 760d735 commit 5df33a6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions rust/doc/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ components:
type: "object"
properties:
target:
$ref: "#/components/schemas/Target"
$ref: "#/components/schemas/Target"
scanner_preferences:
description: "Overwrite the default settings of the Scanner."
type: "array"
Expand Down Expand Up @@ -410,15 +410,17 @@ components:
- udp
- tcp
range:
description: "A list of ranges, start and end are inclusive."
type: "object"
properties:
start:
type: "number"
description: "The inclusive start port. When end is not set only the start port is used"
end:
type: "number"
description: "The inclusive end port."
type: "array"
description: "A list of ranges"
items:
type: "object"
properties:
start:
type: "number"
description: "The inclusive start port. When end is not set only the start port is used"
end:
type: "number"
description: "The inclusive end port."
required:
- range

Expand Down

0 comments on commit 5df33a6

Please sign in to comment.