{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-role-resource-schema.json",
  "title": "RoleResource",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-scim-2-0-role-management-api-openapi.yml#/components/schemas/RoleResource",
  "type": "object",
  "properties": {
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "id": {
      "type": "string"
    },
    "externalId": {
      "type": "string"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    },
    "name": {
      "type": "string"
    },
    "entitlements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Entitlement"
      }
    }
  },
  "x-talend": {
    "section": "Roles"
  },
  "$defs": {
    "Entitlement": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "display": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "primary": {
          "type": "boolean"
        }
      },
      "x-talend": {
        "section": "Users"
      }
    },
    "Meta": {
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string"
        },
        "created": {
          "type": "string",
          "format": "date-time"
        },
        "lastModified": {
          "type": "string",
          "format": "date-time"
        },
        "location": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "x-talend": {
        "section": "Common"
      }
    }
  }
}