{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jfrog/main/json-schema/jfrog-permission-2-schema.json",
  "title": "Permission_2",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jfrog-permissions-api-openapi.yml#/components/schemas/Permission_2",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "resources": {
      "type": "object",
      "properties": {
        "repository": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "include_patterns": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exclude_patterns": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "actions": {
                "type": "object",
                "properties": {
                  "users": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "groups": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "build": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      }
    }
  },
  "required": [
    "name"
  ]
}