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

Update schema documentation for CPE #388

Open
zmanion opened this issue Mar 3, 2025 · 2 comments
Open

Update schema documentation for CPE #388

zmanion opened this issue Mar 3, 2025 · 2 comments

Comments

@zmanion
Copy link
Contributor

zmanion commented Mar 3, 2025

These do not include cpeApplicabilityElement and I think need to be updated, especially the first item:

https://cveproject.github.io/cve-schema/schema/docs/

https://cveproject.github.io/cve-schema/schema/docs/mindmap.html

Minor edit: capitalize CVE Record Format (or CVE JSON Record Format?) in the intro text.

@zmanion
Copy link
Contributor Author

zmanion commented Mar 3, 2025

Edit: Ignore this, I updated docs.sh and believe both the json-schema-for-humans and mindmap are now updated correctly in #389.

I'm giving up on regenerating the mindmap.

art@plank /Store/CVE/doctemp/cve-schema/schema
$ node support/schema2markmap/index.js CVE_Record_Format.json 
/Volumes/Store/CVE/doctemp/cve-schema/schema/support/schema2markmap/node_modules/@apidevtools/json-schema-ref-parser/lib/resolvers/file.js:52
            reject(new ResolverError(ono(err, `Error opening file "${path}"`), path));
                   ^

ResolverError: Error opening file "/tags/reference-tags.json" 
ENOENT: no such file or directory, open '/tags/reference-tags.json'
    at ReadFileContext.callback (/Volumes/Store/CVE/doctemp/cve-schema/schema/support/schema2markmap/node_modules/@apidevtools/json-schema-ref-parser/lib/resolvers/file.js:52:20)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:298:13) {
  code: 'ERESOLVER',
  source: '/tags/reference-tags.json',
  path: null,
  toJSON: [Function: toJSON],
  ioErrorCode: 'ENOENT',
  [Symbol(nodejs.util.inspect.custom)]: [Function: inspect]
}

Node.js v22.12.0

@zmanion
Copy link
Contributor Author

zmanion commented Mar 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant