Skip to content

Commit

Permalink
More generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter authored and ctron committed Aug 29, 2024
1 parent 58bdefd commit 9bd4be1
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions xtask/schema/generate-dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,46 @@
}
}
},
"CweImporter": {
"type": "object",
"required": [
"period"
],
"properties": {
"description": {
"description": "A description for users.",
"type": [
"string",
"null"
]
},
"disabled": {
"description": "A flag to disable the importer, without deleting it.",
"default": false,
"type": "boolean"
},
"labels": {
"description": "Labels which will be applied to the ingested documents.",
"allOf": [
{
"$ref": "#/definitions/Labels"
}
]
},
"period": {
"description": "The period the importer should be run.",
"allOf": [
{
"$ref": "#/definitions/HumantimeSerde"
}
]
},
"source": {
"default": "https://cwe.mitre.org/data/xml/cwec_latest.xml.zip",
"type": "string"
}
}
},
"HumantimeSerde": {
"type": "string"
},
Expand Down Expand Up @@ -262,6 +302,18 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"cwe"
],
"properties": {
"cwe": {
"$ref": "#/definitions/CweImporter"
}
},
"additionalProperties": false
}
]
},
Expand Down

0 comments on commit 9bd4be1

Please sign in to comment.