<!-- Generated from the reviewed public OpenAPI contract. Do not edit this file. -->

# Policy



**Type:** object

Required means required **within its containing object**, when that object is present. Union/conditional constraints remain defined by the JSON Schema below.


| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| ` current_version ` | integer | Optional | minimum: ` 1 ` |
| ` id ` | string | Optional | Public pol_… reference (not a UUID). pattern: ` ^pol_[0-7][0-9A-HJKMNP-TV-Z]{25}$ ` |
| ` name ` | string | Optional | minLength: ` 1 `. maxLength: ` 120 ` |
| ` versions ` | Array of object | Optional | — |
| ` versions[].id ` | string | Optional | Public polv_… reference (not a UUID). pattern: ` ^polv_[0-7][0-9A-HJKMNP-TV-Z]{25}$ ` |
| ` versions[].rules ` | [PolicyRules](policyrules.md) | Optional | — |
| ` versions[].version ` | integer | Optional | minimum: ` 1 ` |


**JSON Schema**
```json
{
  "additionalProperties": true,
  "properties": {
    "current_version": {
      "minimum": 1,
      "type": "integer"
    },
    "id": {
      "description": "Public pol_… reference (not a UUID)",
      "pattern": "^pol_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    },
    "name": {
      "maxLength": 120,
      "minLength": 1,
      "type": "string"
    },
    "versions": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "id": {
            "description": "Public polv_… reference (not a UUID)",
            "pattern": "^polv_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
            "type": "string"
          },
          "rules": {
            "$ref": "#/components/schemas/PolicyRules"
          },
          "version": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```
