{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/as01/schemas/state-core.schema.json",
  "title": "AS01-F01 state-core",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "proposal_version",
    "object_type",
    "issuer_id",
    "log_id",
    "locator",
    "state_epoch",
    "status",
    "effective_at",
    "valid_until",
    "material_commitment"
  ],
  "properties": {
    "proposal_version": {
      "const": "as-01"
    },
    "object_type": {
      "const": "authority_state_value"
    },
    "issuer_id": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/id"
    },
    "log_id": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/id"
    },
    "locator": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/locator.schema.json"
    },
    "state_epoch": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/positive"
    },
    "status": {
      "enum": [
        "active",
        "suspended",
        "revoked",
        "expired",
        "erased"
      ]
    },
    "effective_at": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/nonnegative"
    },
    "valid_until": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/positive"
    },
    "material_commitment": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/hash"
    }
  }
}
