{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chalmers-university-of-technology/json-schema/chalmers-university-of-technology-simple-project-metadata-schema.json",
  "title": "SimpleProjectMetadata",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chalmers-university-of-technology-projectsconnectedtoorganization-api-openapi.yml#/components/schemas/SimpleProjectMetadata",
  "type": "object",
  "properties": {
    "ID": {
      "format": "int32",
      "type": "integer"
    },
    "ProjectTitleSwe": {
      "type": "string"
    },
    "ProjectTitleEng": {
      "type": "string"
    },
    "StartDate": {
      "format": "date-time",
      "type": "string"
    },
    "EndDate": {
      "format": "date-time",
      "type": "string"
    },
    "PublishStatus": {
      "format": "int32",
      "type": "integer"
    },
    "CreatedDate": {
      "format": "date-time",
      "type": "string"
    },
    "UpdatedDate": {
      "format": "date-time",
      "type": "string"
    },
    "Identifiers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectIdentifier"
      }
    },
    "Contracts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SimpleProjectContractMetadata"
      }
    }
  },
  "$defs": {
    "ProjectContractIdentifier": {
      "type": "object",
      "properties": {
        "ID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectContractID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectContractIdentifierID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectContractIdentifierDescription": {
          "type": "string"
        },
        "ProjectContractIdentifierValue": {
          "type": "string"
        }
      }
    },
    "ProjectIdentifier": {
      "type": "object",
      "properties": {
        "ID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectIdentifierID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectIdentifierDescription": {
          "type": "string"
        },
        "ProjectIdentifierValue": {
          "type": "string"
        }
      }
    },
    "SimpleIdentifier": {
      "type": "object",
      "properties": {
        "Type": {
          "$ref": "#/$defs/SimpleIdentifierType"
        },
        "UpdatedBy": {
          "type": "string"
        },
        "UpdatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "IsActive": {
          "type": "boolean"
        },
        "Value": {
          "type": "string"
        }
      }
    },
    "SimpleIdentifierType": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string"
        },
        "DescriptionSwe": {
          "type": "string"
        },
        "DescriptionEng": {
          "type": "string"
        }
      }
    },
    "SimpleOrganization": {
      "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"
        },
        "City": {
          "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/SimpleOrganizationType"
          }
        },
        "OrganizationParents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SimpleOrganizationParent"
          }
        },
        "Identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SimpleIdentifier"
          }
        },
        "IdentifierLdapCode": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "IdentifierCplDepartmentId": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "DeletedBy": {
          "type": "string"
        },
        "DeletedAt": {
          "format": "date-time",
          "type": "string"
        }
      }
    },
    "SimpleOrganizationParent": {
      "type": "object",
      "properties": {
        "FromDate": {
          "format": "date-time",
          "type": "string"
        },
        "ToDate": {
          "format": "date-time",
          "type": "string"
        },
        "ParentOrganizationData": {
          "$ref": "#/$defs/SimpleOrganization"
        }
      }
    },
    "SimpleOrganizationType": {
      "type": "object",
      "properties": {
        "NameSwe": {
          "type": "string"
        },
        "NameEng": {
          "type": "string"
        },
        "LegacyOrganizationTypeId": {
          "format": "int32",
          "type": "integer"
        }
      }
    },
    "SimpleProjectContractMetadata": {
      "type": "object",
      "properties": {
        "ID": {
          "format": "int32",
          "type": "integer"
        },
        "ProjectID": {
          "format": "int32",
          "type": "integer"
        },
        "OrganizationID": {
          "type": "string"
        },
        "FunderID": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ContractStartDate": {
          "format": "date-time",
          "type": "string"
        },
        "ContractEndDate": {
          "format": "date-time",
          "type": "string"
        },
        "CreatedDate": {
          "format": "date-time",
          "type": "string"
        },
        "UpdatedDate": {
          "format": "date-time",
          "type": "string"
        },
        "ContractOrganization": {
          "$ref": "#/$defs/SimpleOrganization"
        },
        "ContractIdentifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectContractIdentifier"
          }
        }
      }
    }
  }
}