refactor: validate generated evidence artifacts

This commit is contained in:
DongHyeonka
2026-08-02 04:33:01 +09:00
parent 2c3cab2518
commit c9f5887cac
18 changed files with 1874 additions and 320 deletions
+56 -56
View File
@@ -1,51 +1,27 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"properties": {
"schemaVersion": {
"type": "number",
"const": 1
},
"buildId": {
"type": "string",
"minLength": 1
},
"commitSha": {
"type": "string",
"minLength": 1
},
"releaseId": {
"type": "string",
"minLength": 1
},
"moduleInventoryHash": {
"type": "string",
"minLength": 1
},
"generatedAt": {
"type": "string",
"minLength": 1
},
"buildContext": {
"type": "object",
"additionalProperties": false,
"properties": {
"nodeVersion": {
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
"packageManagerVersion": {
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
"runnerImage": {
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
"sourceDateEpoch": {
"anyOf": [
{
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
{
"type": "null"
@@ -59,37 +35,53 @@
"runnerImage",
"sourceDateEpoch"
],
"additionalProperties": false
"type": "object"
},
"buildId": {
"minLength": 1,
"type": "string"
},
"commitSha": {
"minLength": 1,
"type": "string"
},
"generatedAt": {
"minLength": 1,
"type": "string"
},
"moduleInventoryHash": {
"minLength": 1,
"type": "string"
},
"outputs": {
"type": "object",
"additionalProperties": false,
"properties": {
"directory": {
"type": "string",
"minLength": 1
},
"viteManifest": {
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
"moduleInventory": {
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
"routeChunks": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1
},
"additionalProperties": {
"type": "string",
"minLength": 1
}
"minLength": 1,
"type": "string"
},
"propertyNames": {
"minLength": 1,
"type": "string"
},
"type": "object"
},
"runtimeConfigSchema": {
"type": "string",
"minLength": 1
"minLength": 1,
"type": "string"
},
"viteManifest": {
"minLength": 1,
"type": "string"
}
},
"required": [
@@ -99,7 +91,15 @@
"routeChunks",
"runtimeConfigSchema"
],
"additionalProperties": false
"type": "object"
},
"releaseId": {
"minLength": 1,
"type": "string"
},
"schemaVersion": {
"const": 1,
"type": "number"
}
},
"required": [
@@ -112,5 +112,5 @@
"buildContext",
"outputs"
],
"additionalProperties": false
"type": "object"
}