{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chalmers-university-of-technology/json-schema/chalmers-university-of-technology-project-organization-person-schema.json",
  "title": "ProjectOrganizationPerson",
  "description": "Connects a person with affiliation to a project",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chalmers-university-of-technology-projectparticipantsverification-api-openapi.yml#/components/schemas/ProjectOrganizationPerson",
  "type": "object",
  "properties": {
    "ID": {
      "format": "int32",
      "type": "integer"
    },
    "ProjectID": {
      "format": "int32",
      "type": "integer"
    },
    "PersonID": {
      "type": "string"
    },
    "OrganizationID": {
      "type": "string"
    },
    "PersonRoleID": {
      "format": "int32",
      "type": "integer"
    },
    "PersonRoleName_en": {
      "type": "string"
    },
    "PersonRoleName_sc": {
      "type": "string"
    },
    "Person": {
      "$ref": "#/$defs/PersonPerson"
    },
    "PersonOrganizations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectOrganizationPersonOrganization"
      }
    },
    "Verified": {
      "format": "date-time",
      "description": "The date for a users verification as a project member",
      "type": "string"
    },
    "VerificationMailSent": {
      "format": "date-time",
      "description": "The date for sending a users verification email",
      "type": "string"
    }
  },
  "$defs": {
    "OrganizationDisplayPath": {
      "type": "object",
      "properties": {
        "DisplayPathSwe": {
          "type": "string"
        },
        "DisplayPathEng": {
          "type": "string"
        }
      }
    },
    "OrganizationHome": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "OrganizationId": {
          "type": "string"
        },
        "OrganizationData": {
          "$ref": "#/$defs/PersonOrganization"
        },
        "LastUpdatedDate": {
          "format": "date-time",
          "type": "string"
        },
        "TitleSwe": {
          "type": "string"
        },
        "TitleEng": {
          "type": "string"
        },
        "StartDate": {
          "format": "date-time",
          "type": "string"
        },
        "EndDate": {
          "format": "date-time",
          "type": "string"
        },
        "Source": {
          "type": "string"
        },
        "Priority": {
          "type": "string"
        }
      }
    },
    "OrganizationIdentifier": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Type": {
          "$ref": "#/$defs/OrganizationIdentifierType"
        },
        "CreatedBy": {
          "type": "string"
        },
        "CreatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        },
        "Value": {
          "type": "string"
        }
      }
    },
    "OrganizationIdentifierType": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Value": {
          "type": "string"
        },
        "DescriptionSwe": {
          "type": "string"
        },
        "DescriptionEng": {
          "type": "string"
        }
      }
    },
    "OrganizationOrganization": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "NameSwe": {
          "type": "string"
        },
        "NameEng": {
          "type": "string"
        },
        "DisplayNameSwe": {
          "type": "string"
        },
        "DisplayNameEng": {
          "type": "string"
        },
        "DisplayPathSwe": {
          "type": "string"
        },
        "DisplayPathEng": {
          "type": "string"
        },
        "DisplayPathShortSwe": {
          "type": "string"
        },
        "DisplayPathShortEng": {
          "type": "string"
        },
        "PossibleDisplayPaths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrganizationDisplayPath"
          }
        },
        "City": {
          "type": "string"
        },
        "PostalNo": {
          "type": "string"
        },
        "Country": {
          "type": "string"
        },
        "GeoLat": {
          "type": "string"
        },
        "GeoLong": {
          "type": "string"
        },
        "Level": {
          "format": "int32",
          "type": "integer"
        },
        "StartYear": {
          "format": "int32",
          "type": "integer"
        },
        "EndYear": {
          "format": "int32",
          "type": "integer"
        },
        "OrganizationTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrganizationOrganizationType"
          }
        },
        "OrganizationParents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrganizationOrganizationParent"
          }
        },
        "ActiveOrganizationParentIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "HasIdentifiers": {
          "type": "boolean"
        },
        "IdentifiersCount": {
          "format": "int32",
          "type": "integer"
        },
        "Identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrganizationIdentifier"
          }
        },
        "IdentifierLdapCode": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "IdentifierCplDepartmentId": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "CreatedBy": {
          "type": "string"
        },
        "CreatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "ValidatedBy": {
          "type": "string"
        },
        "ValidatedDate": {
          "format": "date-time",
          "type": "string"
        },
        "DeletedBy": {
          "type": "string"
        },
        "DeletedAt": {
          "format": "date-time",
          "type": "string"
        },
        "NeedsAttention": {
          "type": "boolean"
        },
        "IsReplacedById": {
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        }
      }
    },
    "OrganizationOrganizationParent": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "FromDate": {
          "format": "date-time",
          "type": "string"
        },
        "ToDate": {
          "format": "date-time",
          "type": "string"
        },
        "ParentOrganizationId": {
          "type": "string"
        },
        "ParentOrganizationData": {
          "$ref": "#/$defs/OrganizationOrganization"
        }
      }
    },
    "OrganizationOrganizationType": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "NameSwe": {
          "type": "string"
        },
        "NameEng": {
          "type": "string"
        },
        "LegacyOrganizationTypeId": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "PdbCategory": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Name": {
          "type": "string"
        },
        "StartDate": {
          "format": "date-time",
          "type": "string"
        },
        "EndDate": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "PersonDisplayPath": {
      "type": "object",
      "properties": {
        "DisplayPathSwe": {
          "type": "string"
        },
        "DisplayPathEng": {
          "type": "string"
        }
      }
    },
    "PersonIdentifier": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Type": {
          "$ref": "#/$defs/PersonIdentifierType"
        },
        "CreatedBy": {
          "type": "string"
        },
        "CreatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        },
        "Value": {
          "type": "string"
        }
      }
    },
    "PersonIdentifierType": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Value": {
          "type": "string"
        },
        "DescriptionSwe": {
          "type": "string"
        },
        "DescriptionEng": {
          "type": "string"
        }
      }
    },
    "PersonOrganization": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "NameSwe": {
          "type": "string"
        },
        "NameEng": {
          "type": "string"
        },
        "DisplayNameSwe": {
          "type": "string"
        },
        "DisplayNameEng": {
          "type": "string"
        },
        "DisplayPathSwe": {
          "type": "string"
        },
        "DisplayPathEng": {
          "type": "string"
        },
        "DisplayPathShortSwe": {
          "type": "string"
        },
        "DisplayPathShortEng": {
          "type": "string"
        },
        "PossibleDisplayPaths": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PersonDisplayPath"
          }
        },
        "City": {
          "type": "string"
        },
        "PostalNo": {
          "type": "string"
        },
        "Country": {
          "type": "string"
        },
        "GeoLat": {
          "type": "string"
        },
        "GeoLong": {
          "type": "string"
        },
        "Level": {
          "format": "int32",
          "type": "integer"
        },
        "StartYear": {
          "format": "int32",
          "type": "integer"
        },
        "EndYear": {
          "format": "int32",
          "type": "integer"
        },
        "OrganizationTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PersonOrganizationType"
          }
        },
        "OrganizationParents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PersonOrganizationParent"
          }
        },
        "ActiveOrganizationParentIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "HasIdentifiers": {
          "type": "boolean"
        },
        "IdentifiersCount": {
          "format": "int32",
          "type": "integer"
        },
        "Identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PersonOrganizationIdentifier"
          }
        },
        "IdentifierLdapCode": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "IdentifierCplDepartmentId": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "CreatedBy": {
          "type": "string"
        },
        "CreatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "ValidatedBy": {
          "type": "string"
        },
        "ValidatedDate": {
          "format": "date-time",
          "type": "string"
        },
        "DeletedBy": {
          "type": "string"
        },
        "DeletedAt": {
          "format": "date-time",
          "type": "string"
        },
        "NeedsAttention": {
          "type": "boolean"
        },
        "IsReplacedById": {
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        }
      }
    },
    "PersonOrganizationIdentifier": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Type": {
          "$ref": "#/$defs/PersonOrganizationIdentifierType"
        },
        "CreatedBy": {
          "type": "string"
        },
        "CreatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        },
        "Value": {
          "type": "string"
        }
      }
    },
    "PersonOrganizationIdentifierType": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "Value": {
          "type": "string"
        },
        "DescriptionSwe": {
          "type": "string"
        },
        "DescriptionEng": {
          "type": "string"
        }
      }
    },
    "PersonOrganizationParent": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "FromDate": {
          "format": "date-time",
          "type": "string"
        },
        "ToDate": {
          "format": "date-time",
          "type": "string"
        },
        "ParentOrganizationId": {
          "type": "string"
        },
        "ParentOrganizationData": {
          "$ref": "#/$defs/PersonOrganization"
        }
      }
    },
    "PersonOrganizationType": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "NameSwe": {
          "type": "string"
        },
        "NameEng": {
          "type": "string"
        },
        "LegacyOrganizationTypeId": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "PersonPerson": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string"
        },
        "FirstName": {
          "type": "string"
        },
        "LastName": {
          "type": "string"
        },
        "DisplayName": {
          "type": "string"
        },
        "BirthYear": {
          "format": "int32",
          "type": "integer"
        },
        "IsReplacedById": {
          "type": "string"
        },
        "IsReplacingId": {
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        },
        "IsDeleted": {
          "type": "boolean"
        },
        "HasOrganizationHome": {
          "type": "boolean"
        },
        "HasIdentifiers": {
          "type": "boolean"
        },
        "HasPublications": {
          "type": "boolean"
        },
        "HasProjects": {
          "type": "boolean"
        },
        "OrganizationHomeCount": {
          "format": "int32",
          "type": "integer"
        },
        "IdentifiersCount": {
          "format": "int32",
          "type": "integer"
        },
        "IdentifierCid": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "IdentifierCplPersonId": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "IdentifierOrcid": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "Identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PersonIdentifier"
          }
        },
        "OrganizationHome": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrganizationHome"
          }
        },
        "PdbCategories": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PdbCategory"
          }
        },
        "CreatedBy": {
          "type": "string"
        },
        "CreatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "DeletedBy": {
          "type": "string"
        },
        "DeletedAt": {
          "format": "date-time",
          "type": "string"
        },
        "SightedBy": {
          "type": "string"
        },
        "SightedAt": {
          "format": "date-time",
          "type": "string"
        },
        "ValidatedBy": {
          "type": "string"
        },
        "ValidatedDate": {
          "format": "date-time",
          "type": "string"
        },
        "NeedsAttention": {
          "type": "boolean"
        }
      }
    },
    "ProjectOrganizationPersonOrganization": {
      "type": "object",
      "properties": {
        "ID": {
          "format": "int32",
          "type": "integer"
        },
        "OrganizationID": {
          "type": "string"
        },
        "StartDate": {
          "format": "date-time",
          "type": "string"
        },
        "EndDate": {
          "format": "date-time",
          "type": "string"
        },
        "ProjectOrganizationPersonID": {
          "format": "int32",
          "type": "integer"
        },
        "OrganizationData": {
          "$ref": "#/$defs/OrganizationOrganization"
        }
      }
    }
  }
}