{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chalmers-university-of-technology/json-schema/chalmers-university-of-technology-organization-organization-schema.json",
  "title": "OrganizationOrganization",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chalmers-university-of-technology-projectorganizationupdated-api-openapi.yml#/components/schemas/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"
    }
  },
  "$defs": {
    "OrganizationDisplayPath": {
      "type": "object",
      "properties": {
        "DisplayPathSwe": {
          "type": "string"
        },
        "DisplayPathEng": {
          "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"
        }
      }
    }
  }
}