I think I found a mismatch between the data model html docs (https://skg-if.github.io/interoperability-framework/) and the OpenAPI spec (https://skg-if.github.io/api/openapi/ver/current/skg-if-openapi.yaml) in how entity-to-entity references are typed. When one entity points to another, the docs describe the value as an identifier (a list of strings), while the spec types it as a full nested object.
This affects organisations, grants, topics, venues, data sources and persons.
A possible payload following the docs
A possible payload following the OpenAPI spec
"funding": [{ "local_identifier": "grant_789", "entity_type": "grant", "titles": {"en": "..."} }]
I think I found a mismatch between the data model html docs (https://skg-if.github.io/interoperability-framework/) and the OpenAPI spec (https://skg-if.github.io/api/openapi/ver/current/skg-if-openapi.yaml) in how entity-to-entity references are typed. When one entity points to another, the docs describe the value as an identifier (a list of strings), while the spec types it as a full nested object.
This affects organisations, grants, topics, venues, data sources and persons.
A possible payload following the docs
A possible payload following the OpenAPI spec