{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fermyontechnologies/json-schema/fermyontechnologies-patch-channel-command-schema.json",
  "title": "PatchChannelCommand",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fermyontechnologies-openapi.json#/components/schemas/PatchChannelCommand",
  "type": "object",
  "properties": {
    "channelId": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "$ref": "#/$defs/StringField"
    },
    "domain": {
      "$ref": "#/$defs/StringField"
    },
    "revisionSelectionStrategy": {
      "$ref": "#/$defs/ChannelRevisionSelectionStrategyField"
    },
    "rangeRule": {
      "$ref": "#/$defs/StringField"
    },
    "activeRevisionId": {
      "$ref": "#/$defs/GuidNullableField"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ChannelRevisionSelectionStrategy": {
      "enum": [
        "UseRangeRule",
        "UseSpecifiedRevision"
      ],
      "type": "string"
    },
    "ChannelRevisionSelectionStrategyField": {
      "type": "string",
      "properties": {
        "value": {
          "$ref": "#/$defs/ChannelRevisionSelectionStrategy"
        }
      },
      "additionalProperties": false
    },
    "GuidNullableField": {
      "type": "string",
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        }
      },
      "additionalProperties": false
    },
    "StringField": {
      "type": "string",
      "properties": {
        "value": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}