{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-eligibles-schema.json",
  "title": "Eligibles",
  "description": "Description of a list of users and groups of users who are eligibles for the sharing of an entit.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-eligibles-api-openapi.yml#/components/schemas/Eligibles",
  "type": "object",
  "properties": {
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/User"
      }
    },
    "groups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Group"
      }
    }
  },
  "$defs": {
    "Group": {
      "type": "object",
      "required": [
        "groupId",
        "groupName"
      ],
      "description": "Desription of group of users, with the group id and its name.",
      "properties": {
        "groupId": {
          "type": "string",
          "description": "UUID"
        },
        "groupName": {
          "type": "string"
        }
      }
    },
    "User": {
      "type": "object",
      "required": [
        "firstName",
        "lastName",
        "userId"
      ],
      "description": "Basic description of an user, with its id, first name and last name.",
      "properties": {
        "userId": {
          "type": "string",
          "description": "UUID"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        }
      }
    }
  }
}