Skip to content

Commit

Permalink
Merge pull request #14 from cerberauth/vulnapi-refactor-security-scheme
Browse files Browse the repository at this point in the history
feat(vulnapi): add new security scheme properties and values
  • Loading branch information
emmanuelgautier authored Dec 14, 2024
2 parents c9e55b8 + 904a9d7 commit 2928aa4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion schemas/vulnapi/draft/2024-10/operation-report.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"type": "string"
},
"body": {
"type": "object"
"type": "string"
},
"cookies": {
"type": "array",
Expand Down
3 changes: 1 addition & 2 deletions schemas/vulnapi/draft/2024-10/scan-report.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
}
},
"error": {
"type": "object",
"required": []
"type": "object"
}
}
}
24 changes: 17 additions & 7 deletions schemas/vulnapi/draft/2024-10/security-scheme-report.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,41 @@
"type": {
"type": "string",
"enum": [
"apiKey",
"http",
"oauth2",
"openIdConnect",
"apiKey",
"mutualTLS",
"none"
]
},
"scheme": {
"type": "string",
"description": "Value are registered in IANA Security Scheme Name Registry",
"enum": [
"basic",
"bearer",
"digest",
"oauth",
"privateToken",
"none"
"Basic",
"Bearer",
"Digest",
"OAuth",
"PrivateToken",
"None"
]
},
"in": {
"type": "string",
"enum": [
"query",
"header",
"cookie"
]
},
"token_format": {
"type": "string",
"enum": [
"jwt",
"none"
]
},
"name": {
"type": "string"
}
Expand Down

0 comments on commit 2928aa4

Please sign in to comment.