Skip to content

Commit a48adb9

Browse files
Update JSON example files (OAI#2786)
Co-authored-by: webron <[email protected]>
1 parent ba59ea1 commit a48adb9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

examples/v3.1/non-oauth-scopes.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"openapi": "3.1.0",
3+
"info": {
4+
"title": "Non-oAuth Scopes example",
5+
"version": "1.0.0"
6+
},
7+
"paths": {
8+
"/users": {
9+
"get": {
10+
"security": [
11+
{
12+
"bearerAuth": [
13+
"read:users",
14+
"public"
15+
]
16+
}
17+
]
18+
}
19+
}
20+
},
21+
"components": {
22+
"securitySchemes": {
23+
"bearerAuth": {
24+
"type": "http",
25+
"scheme": "bearer",
26+
"bearerFormat": "jwt",
27+
"description": "note: non-oauth scopes are not defined at the securityScheme level"
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)