{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudtruth/json-schema/cloudtruth-parameter-type-rule-update-schema.json",
  "title": "ParameterTypeRuleUpdate",
  "description": "A type of `ModelSerializer` that uses hyperlinked relationships with compound keys instead\nof primary key relationships.  Specifically:\n\n* A 'url' field is included instead of the 'id' field.\n* Relationships to other instances are hyperlinks, instead of primary keys.\n\nNOTE: this only works with DRF 3.1.0 and above.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudtruth-types-api-openapi.yml#/components/schemas/ParameterTypeRuleUpdate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "parameter_type": {
      "type": "string",
      "format": "uri",
      "readOnly": true,
      "description": "The type this rule is for."
    },
    "type": {
      "$ref": "#/$defs/ParameterRuleTypeEnum"
    },
    "constraint": {
      "type": "string",
      "description": "The constraint for the rule. Provided for backwards compatibility."
    },
    "constraints": {},
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "created_at",
    "id",
    "modified_at",
    "parameter_type",
    "type"
  ],
  "$defs": {
    "ParameterRuleTypeEnum": {
      "enum": [
        "min",
        "max",
        "min_len",
        "max_len",
        "regex",
        "one_of"
      ],
      "type": "string",
      "description": "* `min` - minimum\n* `max` - maximum\n* `min_len` - minimum_length\n* `max_len` - maximum_length\n* `regex` - regex\n* `one_of` - one_of"
    }
  }
}