I'm trying to understand how to parse the response of the Retrieve All Document Fields API call. In particular, I'm interested in getting what taxonomy position a field applies to.
The challenge is that there's quite a bit of variability among items of the 'properties' array.
From what I get, the "shared" key will always be present with values "true" or "false", except for "id" and "version_id".
If shared == false, then the object always contains a single "definedIn" key, whose value can be parsed in its turn.
If shared == true, then the object usually contains a "usedIn" array with its own objects for each taxonomy position the field is used in.
However, I found 17 fields where shared == true, but there is neither a 'definedIn' or a 'usedIn' key. For instance:
I wonder what to make of these items. What does it mean for a field to be shared, but neither defined in or used in anything?