Skip to content

Commit 1e48374

Browse files
committed
Fix OAS syntax errors
Including a really obvious set of errors with security requirements.
1 parent f98f4dc commit 1e48374

File tree

14 files changed

+18
-17
lines changed

14 files changed

+18
-17
lines changed

assess/operationId/3rd-doc-no-direct-ref/in/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ paths:
66
/foos:
77
$ref: "paths.yaml#/paths/~1foos"
88
/bars:
9-
$ref: "others.yaml#/paths/~1/bars"
9+
$ref: "others.yaml#/paths/~1bars"

assess/operationId/3rd-doc-no-direct-ref/multi/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ paths:
66
/foos:
77
$ref: "paths.yaml#/paths/~1foos"
88
/bars:
9-
$ref: "others.yaml#/paths/~1/bars"
9+
$ref: "others.yaml#/paths/~1bars"

assess/operationId/ref-path-in-3rd-doc/in/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ paths:
66
/foos:
77
$ref: "paths.yaml#/paths/~1foos"
88
/others:
9-
$ref: "others.yaml#/paths/~1/others"
9+
$ref: "others.yaml#/paths/~1others"

assess/operationId/ref-path-in-3rd-doc/multi/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ paths:
66
/foos:
77
$ref: "paths.yaml#/paths/~1foos"
88
/others:
9-
$ref: "others.yaml#/paths/~1/others"
9+
$ref: "others.yaml#/paths/~1others"

assess/schemaBaseUri/bypass-doc-root/in/openapi.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ paths:
1111
description: Ok
1212
content:
1313
application/json:
14-
schema: schema.json#/$defs/foo
14+
schema:
15+
$ref: schema.json#/$defs/foo

assess/schemaBaseUri/bypass-embedded-root/in/openapi.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ paths:
1111
description: Ok
1212
content:
1313
application/json:
14-
schema: schema.json#/$defs/foo/$defs/bar
14+
schema:
15+
$ref: schema.json#/$defs/foo/$defs/bar

assess/security/component-entry/in/openapi.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ openapi: 3.0.3
22
info:
33
title: "OASComply assessment entry: security scheme, component to entry"
44
version: "0.0.1"
5-
security:
6-
foo: []
5+
security: [{foo: []}]
76
paths:
87
/endpoint:
98
$ref: "paths.yaml#/paths/~1endpoint"

assess/security/component-entry/in/paths.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
paths:
66
/endpoint:
77
get:
8-
security: foo
8+
security: [{foo: []}]
99
responses:
1010
"200":
1111
description: Ok

assess/security/component-entry/single/openapi.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ openapi: 3.0.3
22
info:
33
title: "OASComply assessment output: security scheme, component to entry"
44
version: "0.0.1"
5-
security:
6-
foo: []
5+
security: [{foo: []}]
76
paths:
87
/endpoint:
98
get:
10-
security: foo
9+
security: [{foo: []}]
1110
responses:
1211
"200":
1312
description: Ok

assess/security/component-local/in/paths.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
paths:
66
/endpoint:
77
get:
8-
security: foo
8+
security: [{foo: []}]
99
responses:
1010
"200":
1111
description: Ok

assess/security/component-local/single/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
paths:
66
/endpoint:
77
get:
8-
security: foo
8+
security: [{foo: []}]
99
responses:
1010
"200":
1111
description: Ok

assess/security/component-via-ref/in/openapi.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ info:
33
title: "OASComply assessment entry: security scheme, component to entry"
44
version: "0.0.1"
55
paths:
6-
$ref: "paths.yaml#/paths/~1endpoint"
6+
/endpoint:
7+
$ref: "paths.yaml#/paths/~1endpoint"
78
components:
89
securitySchemes:
910
foo:

assess/security/component-via-ref/in/paths.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
paths:
66
/endpoint:
77
get:
8-
security: foo
8+
security: [{foo: []}]
99
responses:
1010
"200":
1111
description: Ok

assess/security/component-via-ref/single/openapi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
paths:
66
/endpoint:
77
get:
8-
security: foo
8+
security: [{foo: []}]
99
responses:
1010
"200":
1111
description: Ok

0 commit comments

Comments
 (0)