Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect use of create-cve-record-rejection-response.json #1165

Open
ElectricNroff opened this issue Jan 7, 2024 · 0 comments
Open

incorrect use of create-cve-record-rejection-response.json #1165

ElectricNroff opened this issue Jan 7, 2024 · 0 comments

Comments

@ElectricNroff
Copy link
Contributor

oneOf: [
{ $ref: '../schemas/cve/get-cve-record-response.json' },
{ $ref: '../schemas/cve/create-cve-record-rejection-response.json' }

oneOf: [
{ $ref: '../schemas/cve/list-cve-records-response.json' },
{ $ref: '../schemas/cve/create-cve-record-rejection-response.json' }

oneOf: [
{ $ref: '../schemas/cve/cursor-cve-records-response.json' },
{ $ref: '../schemas/cve/create-cve-record-rejection-response.json' }

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.

@jdaigneau5 jdaigneau5 moved this to Needs Triage in Issue Triage Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Triage
Development

No branches or pull requests

2 participants