incorrect use of create-cve-record-rejection-response.json
ElectricNroff opened this issue · 0 comments
ElectricNroff commented
cve-services/src/controller/cve.controller/index.js
Lines 29 to 31 in 2a767da
cve-services/src/controller/cve.controller/index.js
Lines 219 to 221 in 2a767da
cve-services/src/controller/cve.controller/index.js
Lines 307 to 309 in 2a767da
use create-cve-record-rejection-response.json incorrectly. For example,
router.get('/cve/:id'
does not sometimes return response data with the message
and created
properties.
If someone goes to https://cveawg-test.mitre.org/api-docs/#/CVE%20Record/cveGetSingle and scrolls down to "200 The requested CVE Record" and clicks on Schema, and then chooses the second possibility for the oneOf, they are told that the top-level properties are message
and created
even though this cannot actually ever occur.