Post #1795139
2026-04-27 12:15 UTC
@weavejester thanks for the background. It sure did look like changing it would break API consumers that expect the current behavior.
For my use case, I tried to work around this by adding an extra middleware that wraps the singleton items into vectors, to be easier able to describe the expected schema in the endpoint metadata, and to avoid having to make the endpoints check for it. Didn't get it super right, though.
Replies (1)
-
@muep@mastodontti.fi 2026-04-27 12:16
@weavejester might well be best leave meddling with it, though, and think about it again e.g. if I end up having a form that allows sending multiple files at once. Even then it might be a rare enough case that making the endpoint branch on the type wouldn't be super bad.