let connection_kind_type = [|
  'LibraryDependency,
  'DeployedBy,
  'CoDeveloped,
  'DataSource,
  'EventConsumer,
  'EventProducer,
  'Monitoring,
  'Unknown,
|] in

let connection_type = {
  project | String,
  kind    | connection_kind_type,
  note    | String | default = "",
  url     | String | default = "",
} in

let connections_type = {
  upstream   | Array connection_type | default = [],
  downstream | Array connection_type | default = [],
  peers      | Array connection_type | default = [],
} in

{
  Connection  = connection_type,
  Connections = connections_type,
}
