Skip to content

Commit

Permalink
Merge pull request #16 from sidharthbh8/patch-3
Browse files Browse the repository at this point in the history
Schema Adjustment
  • Loading branch information
sidharthbh8 authored Aug 24, 2023
2 parents 8e80fb0 + c1d2b38 commit b413a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25293,7 +25293,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
/***/ ((module) => {

"use strict";
module.exports = JSON.parse('{"type":"object","properties":{"cnaContainer":{"type":"object","properties":{"title":{"type":"string"},"datePublic":{"type":"string","pattern":"^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z?$"},"problemTypes":{"type":"array","items":{"type":"object","properties":{"descriptions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"cweId":{"type":"string"},"description":{"type":"string"}},"required":["lang","description"]}}},"required":["descriptions"]}},"impacts":{"type":"array","items":{"type":"object","properties":{"capecId":{"type":"string"},"descriptions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}}},"required":["capecId","descriptions"]}},"affected":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"product":{"type":"string"},"platforms":{"type":"array","items":{"type":"string"}},"collectionURL":{"type":"string"},"packageName":{"type":"string"},"repo":{"type":"string","format":"uri"},"modules":{"type":"array","items":{"type":"string"}},"programFiles":{"type":"array","items":{"type":"string"}},"programRoutines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"status":{"type":"string"},"lessThan":{"type":"string"},"versionType":{"type":"string"}},"required":["version","status","lessThan","versionType"]}},"defaultStatus":{"type":"string"}},"required":["vendor","product","versions"]}},"descriptions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"metrics":{"type":"array","items":{"type":"object","properties":{"format":{"type":"string"},"scenarios":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"cvssV3_1":{"type":"object","properties":{"version":{"type":"string"},"attackVector":{"type":"string"},"attackComplexity":{"type":"string"},"privilegesRequired":{"type":"string"},"userInteraction":{"type":"string"},"scope":{"type":"string"},"confidentialityImpact":{"type":"string"},"integrityImpact":{"type":"string"},"availabilityImpact":{"type":"string"},"baseScore":{"type":"number"},"baseSeverity":{"type":"string"},"vectorString":{"type":"string"}}}},"required":["format","scenarios","cvssV3_1"]}},"solutions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"workarounds":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"configurations":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"exploits":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"timeline":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","pattern":"^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z?$"},"lang":{"type":"string"},"value":{"type":"string"}},"required":["time","lang","value"]}},"credits":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"}},"required":["lang","value","type"]}},"references":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["url"]}},"source":{"type":"object","properties":{"defects":{"type":"array","items":{"type":"string"}},"advisory":{"type":"string"},"discovery":{"type":"string"}}},"taxonomyMappings":{"type":"array","items":{"type":"object","properties":{"taxonomyName":{"type":"string"},"taxonomyVersion":{"type":"string"},"taxonomyRelations":{"type":"array","items":{"type":"object","properties":{"taxonomyId":{"type":"string"},"relationshipName":{"type":"string"},"relationshipValue":{"type":"string"}},"required":["taxonomyId","relationshipName","relationshipValue"]}}},"required":["taxonomyName","taxonomyVersion","taxonomyRelations"]}}},"required":["problemTypes","affected","descriptions","references"]}},"required":["cnaContainer"],"additionalProperties":true}');
module.exports = JSON.parse('{"type":"object","properties":{"cnaContainer":{"type":"object","properties":{"title":{"type":"string"},"datePublic":{"type":"string","pattern":"^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z?$"},"problemTypes":{"type":"array","items":{"type":"object","properties":{"descriptions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"cweId":{"type":"string"},"description":{"type":"string"}},"required":["lang","description"]}}},"required":["descriptions"]}},"impacts":{"type":"array","items":{"type":"object","properties":{"capecId":{"type":"string"},"descriptions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}}},"required":["capecId","descriptions"]}},"affected":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string"},"product":{"type":"string"},"platforms":{"type":"array","items":{"type":"string"}},"collectionURL":{"type":"string"},"packageName":{"type":"string"},"repo":{"type":"string","format":"uri"},"modules":{"type":"array","items":{"type":"string"}},"programFiles":{"type":"array","items":{"type":"string"}},"programRoutines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"status":{"type":"string"},"lessThan":{"type":"string"},"versionType":{"type":"string"}},"required":["version","status","lessThan","versionType"]}},"defaultStatus":{"type":"string"}},"required":["vendor","product","versions"]}},"descriptions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"metrics":{"type":"array","items":{"type":"object","properties":{"format":{"type":"string"},"scenarios":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"cvssV3_1":{"type":"object","properties":{"version":{"type":"string"},"attackVector":{"type":"string"},"attackComplexity":{"type":"string"},"privilegesRequired":{"type":"string"},"userInteraction":{"type":"string"},"scope":{"type":"string"},"confidentialityImpact":{"type":"string"},"integrityImpact":{"type":"string"},"availabilityImpact":{"type":"string"},"baseScore":{"type":"number"},"baseSeverity":{"type":"string"},"vectorString":{"type":"string"}}}},"required":["format","scenarios","cvssV3_1"]}},"solutions":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"workarounds":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"configurations":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"exploits":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"}},"required":["lang","value"]}},"timeline":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","pattern":"^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z?$"},"lang":{"type":"string"},"value":{"type":"string"}},"required":["time","lang","value"]}},"credits":{"type":"array","items":{"type":"object","properties":{"lang":{"type":"string"},"value":{"type":"string"},"type":{"type":"string"}},"required":["lang","value","type"]}},"references":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["url"]}},"source":{"type":"object","properties":{"defects":{"type":"array","items":{"type":"string"}},"advisory":{"type":"string"},"discovery":{"type":"string"}}},"taxonomyMappings":{"type":"array","items":{"type":"object","properties":{"taxonomyName":{"type":"string"},"taxonomyVersion":{"type":"string"},"taxonomyRelations":{"type":"array","items":{"type":"object","properties":{"taxonomyId":{"type":"string"},"relationshipName":{"type":"string"},"relationshipValue":{"type":"string"}},"required":["taxonomyId","relationshipName","relationshipValue"]}}},"required":["taxonomyName","taxonomyVersion","taxonomyRelations"]}}},"required":["problemTypes","affected","descriptions","references"]}},"required":["cnaContainer"]}');

/***/ })

Expand Down
3 changes: 1 addition & 2 deletions src/validator/CVE_Schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,5 @@
"required": ["problemTypes", "affected", "descriptions", "references"]
}
},
"required": ["cnaContainer"],
"additionalProperties": true
"required": ["cnaContainer"]
}

0 comments on commit b413a23

Please sign in to comment.