Delivery API: Include Element names in the Delivery API output (closes #23242) - #23260
Conversation
|
Claude finished @kjac's task in 4m 0s —— View job PR ReviewTarget: Moves the
Important
Suggestions
Request ChangesOne breaking-change mitigation is missing: |
AndyButland
left a comment
There was a problem hiding this comment.
Works as expected @kjac - in testing I could see the name for a delivery API property output for an element picker missing before this PR is applied, but it's included afterward:
"pickedElement": [
{
"contentType": "testElement",
"id": "d0a70606-cb11-41aa-9385-ad4110645b6a",
"name": "yyy",
"properties": {
"text": "zzz"
}
}I've fixed up the two issues noted around default property syntax and the interface breaking change,
|



Prerequisites
If there's an existing issue for this PR then this fixes #23242
Description
This adds Element names to the Delivery API output. See #23242 for details.
Breaking?
The Delivery API schema changes with this PR:
nameproperty changes position forIApiContentResponseModel,IApiContentBaseModeland `IApiContentResponseBaseModel´ (depending on your schema generation configuration).IApiElementBaseModelmodel gains anameproperty.Neither of these changes should be breaking - but please take the time to consider it 😄
Testing this PR
Fetch content with an element picker through the Delivery API. The response should contain the element name.