Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bed 4405: update openAPI docs for list findings #974

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/api/src/api/v2/auth/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/specterops/bloodhound/log"
"github.com/specterops/bloodhound/mediatypes"
"github.com/specterops/bloodhound/src/api"
"github.com/specterops/bloodhound/src/api/v2"
v2 "github.com/specterops/bloodhound/src/api/v2"
"github.com/specterops/bloodhound/src/auth"
"github.com/specterops/bloodhound/src/ctx"
"github.com/specterops/bloodhound/src/model"
Expand Down
1 change: 0 additions & 1 deletion cmd/api/src/database/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ type Database interface {
DeleteAuthSecret(ctx context.Context, authSecret model.AuthSecret) error
InitializeSecretAuth(ctx context.Context, adminUser model.User, authSecret model.AuthSecret) (model.Installation, error)


// SSO
SSOProviderData
OIDCProviderData
Expand Down
14 changes: 1 addition & 13 deletions packages/go/openapi/doc/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12602,7 +12602,7 @@
"AcceptedUntil": "2024-08-28T21:21:40.845Z",
"ImpactPercentage": 12,
"ImpactCount": 2,
"ExposurePercentage": 24,
"ExposurePercentage": 0.24,
"ExposureCount": 4,
"Severity": "high",
"Accepted": true
Expand Down Expand Up @@ -12691,8 +12691,6 @@
"accepted_until": "2024-08-28T21:42:18.844Z",
"ImpactPercentage": 12,
"ImpactCount": 2,
"ExposurePercentage": 24,
"ExposureCount": 4,
"Severity": "high",
"Accepted": true
}
Expand Down Expand Up @@ -12727,8 +12725,6 @@
"accepted_until": "2024-08-28T21:42:18.844Z",
"ImpactPercentage": 0,
"ImpactCount": 0,
"ExposurePercentage": 0,
"ExposureCount": 0,
"Severity": "",
"Accepted": true
}
Expand Down Expand Up @@ -15930,14 +15926,6 @@
"type": "integer",
"format": "int64"
},
"ExposurePercentage": {
"type": "number",
"format": "double"
},
"ExposureCount": {
"type": "integer",
"format": "int64"
},
"Severity": {
"type": "string",
"enum": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ get:
AcceptedUntil: "2024-08-28T21:21:40.845Z",
ImpactPercentage: 12,
ImpactCount: 2,
ExposurePercentage: 24,
ExposurePercentage: .24,
ExposureCount: 4,
Severity: 'high',
Accepted: true,
Expand Down Expand Up @@ -262,8 +262,6 @@ get:
accepted_until: "2024-08-28T21:42:18.844Z",
ImpactPercentage: 12,
ImpactCount: 2,
ExposurePercentage: 24,
ExposureCount: 4,
Severity: 'high',
Accepted: true
}
Expand Down Expand Up @@ -296,8 +294,6 @@ get:
accepted_until: "2024-08-28T21:42:18.844Z",
ImpactPercentage: 0,
ImpactCount: 0,
ExposurePercentage: 0,
ExposureCount: 0,
Severity: '',
Accepted: true
}
Expand Down
6 changes: 0 additions & 6 deletions packages/go/openapi/src/schemas/model.list-finding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ allOf:
ImpactCount:
type: integer
format: int64
ExposurePercentage:
type: number
format: double
ExposureCount:
type: integer
format: int64
Severity:
type: string
enum:
Expand Down
Loading