{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:junexis:schema:sdk-provenance:0.1",
  "title": "Pochodzenie artefaktów Junexis SDK 0.1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "releaseVersion", "releaseManifest", "releaseManifestSha256", "source", "build"],
  "properties": {
    "schemaVersion": { "const": "junexis.sdk.provenance/0.1" },
    "releaseVersion": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$" },
    "releaseManifest": { "const": "junexis.sdk.json" },
    "releaseManifestSha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
    "source": {
      "type": "object",
      "additionalProperties": false,
      "required": ["repository", "revision", "state"],
      "properties": {
        "repository": { "const": "junexis-sdk" },
        "revision": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
        "state": { "enum": ["clean", "dirty"] }
      }
    },
    "build": {
      "type": "object",
      "additionalProperties": false,
      "required": ["configuration", "dotnetSdk", "deterministicPackageArchive"],
      "properties": {
        "configuration": { "enum": ["Debug", "Release"] },
        "dotnetSdk": { "type": "string", "minLength": 1 },
        "deterministicPackageArchive": { "const": true }
      }
    }
  }
}
