Skip to content

feat: improve and prepare support for more openapi security schemes

Codecov / codecov/patch succeeded Nov 17, 2024 in 1s

75.58% of diff hit (target 57.01%)

View this Pull Request on Codecov

75.58% of diff hit (target 57.01%)

Annotations

Check warning on line 35 in api/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

api/openapi.go#L35

Added line #L35 was not covered by tests

Check warning on line 43 in api/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

api/openapi.go#L43

Added line #L43 was not covered by tests

Check warning on line 62 in api/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

api/openapi.go#L61-L62

Added lines #L61 - L62 were not covered by tests

Check warning on line 49 in cmd/scan/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/scan/openapi.go#L49

Added line #L49 was not covered by tests

Check warning on line 56 in cmd/scan/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/scan/openapi.go#L56

Added line #L56 was not covered by tests

Check warning on line 71 in cmd/scan/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/scan/openapi.go#L71

Added line #L71 was not covered by tests

Check warning on line 81 in cmd/scan/openapi.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/scan/openapi.go#L81

Added line #L81 was not covered by tests

Check warning on line 8 in internal/auth/api_key.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/api_key.go#L7-L8

Added lines #L7 - L8 were not covered by tests

Check warning on line 14 in internal/auth/api_key.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/api_key.go#L13-L14

Added lines #L13 - L14 were not covered by tests

Check warning on line 23 in internal/auth/api_key.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/api_key.go#L23

Added line #L23 was not covered by tests

Check warning on line 11 in internal/auth/bearer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/bearer.go#L11

Added line #L11 was not covered by tests

Check warning on line 18 in internal/auth/bearer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/bearer.go#L17-L18

Added lines #L17 - L18 were not covered by tests

Check warning on line 28 in internal/auth/bearer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/bearer.go#L27-L28

Added lines #L27 - L28 were not covered by tests

Check warning on line 37 in internal/auth/bearer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/bearer.go#L37

Added line #L37 was not covered by tests

Check warning on line 12 in internal/auth/no_auth.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/no_auth.go#L12

Added line #L12 was not covered by tests

Check warning on line 34 in internal/auth/oauth.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/oauth.go#L33-L34

Added lines #L33 - L34 were not covered by tests

Check warning on line 58 in internal/auth/oauth.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/oauth.go#L58

Added line #L58 was not covered by tests

Check warning on line 65 in internal/auth/oauth.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/oauth.go#L64-L65

Added lines #L64 - L65 were not covered by tests

Check warning on line 75 in internal/auth/oauth.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/oauth.go#L74-L75

Added lines #L74 - L75 were not covered by tests

Check warning on line 84 in internal/auth/oauth.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/oauth.go#L84

Added line #L84 was not covered by tests

Check warning on line 101 in internal/auth/security_scheme.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/security_scheme.go#L100-L101

Added lines #L100 - L101 were not covered by tests

Check warning on line 107 in internal/auth/security_scheme.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/security_scheme.go#L106-L107

Added lines #L106 - L107 were not covered by tests

Check warning on line 127 in internal/auth/security_scheme.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/security_scheme.go#L126-L127

Added lines #L126 - L127 were not covered by tests

Check warning on line 144 in internal/auth/security_scheme.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/security_scheme.go#L144

Added line #L144 was not covered by tests

Check warning on line 215 in internal/auth/security_scheme.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/auth/security_scheme.go#L213-L215

Added lines #L213 - L215 were not covered by tests