{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:goodvision:third-party-artifact-manifest:1.0",
  "title": "Independent qiankun application artifact",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "runtime",
    "artifact_version",
    "entry",
    "container",
    "assets"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "1.0"
    },
    "runtime": {
      "type": "string",
      "const": "qiankun"
    },
    "artifact_version": {
      "type": "string",
      "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
    },
    "entry": {
      "type": "string",
      "maxLength": 2048,
      "pattern": "^/(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\s\\\\?#%\\u0000-\\u001f\\u007f]*$"
    },
    "container": {
      "type": "string",
      "maxLength": 2048,
      "pattern": "^/(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\s\\\\?#%\\u0000-\\u001f\\u007f]*$"
    },
    "assets": {
      "type": "array",
      "minItems": 2,
      "maxItems": 100,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "path",
          "sha256"
        ],
        "properties": {
          "path": {
            "type": "string",
            "maxLength": 2048,
            "pattern": "^/(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\s\\\\?#%\\u0000-\\u001f\\u007f]*$"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        }
      }
    }
  }
}
