Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think the root feed item should be an array instead of an object so we can filter out empty attributes.
Comment | File | Size | Author |
---|---|---|---|
#11 | use_array_instead_of-2885295-11.patch | 3.73 KB | markdorison |
| |||
#9 | interdiff-8-9.txt | 613 bytes | markdorison |
#9 | use_array_instead_of-2885295-9.patch | 4.48 KB | markdorison |
| |||
#8 | feed_array-2885295-8.patch | 3.73 KB | KarlShea |
|
Comments
Comment #2
KarlSheaThoughts?
Comment #4
KarlSheaLook at that, the tests are useful already.
Comment #6
KarlSheaUpdate test view to add description value so description isn't stripped from output / Update test to check for description.
Comment #8
KarlSheaUpdate schema to add description.
Comment #9
markdorisonFixed one code style issue.
@KarlShea Is there a benefit to building the JSON object as an array instead of an object?
Comment #10
KarlSheaThe only reason was to use array_filter to remove empty attributes. It's possible that it wouldn't matter, but we're doing the same for feed items.
Comment #11
markdorison@KarlShea Works for me.
In the last patch I accidentally included the interdiff. Here is a fresh one.
Comment #13
markdorison