{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/confighub/json-schema/confighub-attest-request-schema.json",
  "title": "AttestRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/confighub-attest-api-openapi.yml#/components/schemas/AttestRequest",
  "type": "object",
  "properties": {
    "ChangeOrderID": {
      "type": "string",
      "format": "uuid"
    },
    "Claims": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "x-go-type-skip-optional-pointer": true
    },
    "EvidenceAttestationIDs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UUID"
      },
      "x-go-type-skip-optional-pointer": true
    },
    "ExpiresAt": {
      "type": "string",
      "format": "date-time",
      "x-go-type-skip-optional-pointer": true,
      "x-omitzero": true
    },
    "Note": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    },
    "Permissions": {
      "$ref": "#/$defs/Permissions"
    },
    "ReleaseID": {
      "type": "string",
      "format": "uuid"
    },
    "Result": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    },
    "Revision": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    },
    "RevokedAttestationID": {
      "type": "string",
      "format": "uuid"
    },
    "SpaceFilterID": {
      "type": "string",
      "format": "uuid"
    },
    "TargetStage": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    },
    "Type": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    },
    "WhereSpace": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    },
    "WhereUnit": {
      "type": "string",
      "x-go-type-skip-optional-pointer": true
    }
  },
  "$defs": {
    "Permissions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/Subjects"
      }
    },
    "Subjects": {
      "type": "object",
      "properties": {
        "GroupIDs": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "x-go-type-skip-optional-pointer": true
        },
        "UserIDs": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "x-go-type-skip-optional-pointer": true
        }
      }
    },
    "UUID": {
      "type": "string",
      "format": "uuid"
    }
  }
}