Skip to content

Commit

Permalink
Fixed missing comma, and made docs more detailed
Browse files Browse the repository at this point in the history
  • Loading branch information
david-rocca committed Dec 20, 2024
1 parent 4efba1a commit f160f27
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion api-docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,18 @@
"type": "string"
},
"description": "The CVE ID for which the record is being updated"
},
{
"$ref": "#/components/parameters/apiEntityHeader"
},
{
"$ref": "#/components/parameters/apiUserHeader"
},
{
"$ref": "#/components/parameters/apiSecretHeader"
},
{
"$ref": "#/components/parameters/erlCheck"
}
],
"responses": {
Expand Down Expand Up @@ -3033,7 +3045,7 @@
"erlCheck": {
"in": "query",
"name": "erlcheck",
"description": "Enables stricter validation that ensures submitted record meets enrichment data requirements",
"description": "Enables stricter validation that ensures submitted record meets enrichment data requirements. For a record to be enriched, a CVSS score and a CWE ID must be provided.",
"required": false,
"schema": {
"type": "boolean"
Expand Down
4 changes: 2 additions & 2 deletions src/controller/cve.controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ router.put('/cve/:id/cna',
#swagger.parameters['$ref'] = [
'#/components/parameters/apiEntityHeader',
'#/components/parameters/apiUserHeader',
'#/components/parameters/apiSecretHeader'
'#/components/parameters/erlCheck',
'#/components/parameters/apiSecretHeader',
'#/components/parameters/erlCheck'
]
#swagger.requestBody = {
description: '<h3>Notes:</h3>
Expand Down
2 changes: 1 addition & 1 deletion src/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const doc = {
erlCheck: {
in: 'query',
name: 'erlcheck',
description: 'Enables stricter validation that ensures submitted record meets enrichment data requirements',
description: 'Enables stricter validation that ensures submitted record meets enrichment data requirements. For a record to be enriched, a CVSS score and a CWE ID must be provided.',
required: false,
schema: {
type: 'boolean'
Expand Down

0 comments on commit f160f27

Please sign in to comment.