Files
tech-log-frontend/schemas/artifacts/dependency-inventory.schema.json
T

95 lines
2.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://tech-log-frontend.local/schemas/dependency-inventory.schema.json",
"additionalProperties": false,
"properties": {
"dependencies": {
"items": {
"additionalProperties": false,
"properties": {
"dependencies": {
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
"direct": {
"type": "boolean"
},
"integrity": {
"pattern": "^sha512-",
"type": "string"
},
"license": {
"minLength": 1,
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"optional": {
"type": "boolean"
},
"scope": {
"enum": [
"production",
"development"
],
"type": "string"
},
"version": {
"minLength": 1,
"type": "string"
}
},
"required": [
"name",
"version",
"direct",
"scope",
"optional",
"license",
"integrity",
"dependencies"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"dependencyCount": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"directDependencyCount": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"lockfileSha256": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"packageManager": {
"minLength": 1,
"type": "string"
},
"schemaVersion": {
"const": 2,
"type": "number"
}
},
"required": [
"schemaVersion",
"packageManager",
"lockfileSha256",
"dependencyCount",
"directDependencyCount",
"dependencies"
],
"type": "object"
}