CRISalid-esr / crisalid-ikg

CRISalid institutional knowledge graph
Other
0 stars 0 forks source link

Person created without a name #49

Closed s-marcq closed 2 weeks ago

s-marcq commented 3 weeks ago

Scenario

A person got created without a name.

Sent data

{
  "people_event": {
    "type": "created",
    "data": {
      "names": [],
      "identifiers": [
        {
          "type": "local",
          "value": "anon123"
        },
        {
          "type": "orcid",
          "value": "0000-0002-1234-5678"
        }
      ],
      "memberships": [
        {
          "entity_uid": "local-U456"
        }
      ]
    }
  }
}

Expected result

The person does not get created and an error is reported.

Observed result

The person gets created. The node "Person" appears on the graph, with memberships, but no names or identifiers, even though they were submitted in the creation event. image