-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActivityStreamsOrderedProperty isn't array with only one item #139
Comments
Ah, man. So the root issue is that one element is a Unfortunately, these are all valid from ActivityStreams' perspective. Fixing this is not easy. The reason this is not a straightforward fix is because these expectations are quite arbitrary. For example, this is behavior enshrined in the code-generation for non-functional properties, that funny jargon for "properties able to have >1 value". Any change in that code-generation means it affects all such properties. So things like So we are caught in a valley where go-fed's rigor means the two quick & easy options are both sub-optimal. Go-fed is in a bit too deep of its own rigor to break away and live the lackadaiscal life. So what are the options?
A real "fix" for this could involve:
|
Please Describe The Problematic Behavior
I have this code:
When I hit the followers endpoint of my app, this is the response
I added two calls to
PrependIRI()
and the response was an array:Please Describe The Expected Behavior
When there is only one item in the ordered items it still renders as an array.
The text was updated successfully, but these errors were encountered: