{"action":"created","issue":{"url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/issues/11","labels_url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/issues/11/comments","events_url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/issues/11/events","html_url":"https://github.com/marshmallow-code/flask-marshmallow/issues/11","id":53664744,"number":11,"title":"Allow list of Hyperlinks","user":{"login":"royrusso","id":654238,"avatar_url":"https://avatars.githubusercontent.com/u/654238?v=3","gravatar_id":"","url":"https://api.github.com/users/royrusso","html_url":"https://github.com/royrusso","followers_url":"https://api.github.com/users/royrusso/followers","following_url":"https://api.github.com/users/royrusso/following{/other_user}","gists_url":"https://api.github.com/users/royrusso/gists{/gist_id}","starred_url":"https://api.github.com/users/royrusso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royrusso/subscriptions","organizations_url":"https://api.github.com/users/royrusso/orgs","repos_url":"https://api.github.com/users/royrusso/repos","events_url":"https://api.github.com/users/royrusso/events{/privacy}","received_events_url":"https://api.github.com/users/royrusso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/labels/ready%20to%20claim","name":"ready to claim","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T18:30:39Z","updated_at":"2015-04-30T20:37:41Z","closed_at":null,"body":"Currently there is no way to create an array/list of hyperlinks, as it expects a dict. A common format for hateoas is as this: https://developer.paypal.com/docs/api/#hateoas-links\r\n\r\n\"links\" : [{\r\n   \"href\" : \"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2XR800907F429382MKEBWOSA\",\r\n   \"rel\" : \"self\",\r\n   \"method\" : \"GET\"\r\n  }, {\r\n   \"href\" : \"https://api.sandbox.paypal.com/v1/payments/payment/PAY-2XR800907F429382MKEBWOSA/execute\",\r\n   \"rel\" : \"update\",\r\n   \"method\" : \"POST\"\r\n\r\nThis format provides standard keys for every link, and is therefore easier to navigate."},"comment":{"url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/issues/comments/97959352","html_url":"https://github.com/marshmallow-code/flask-marshmallow/issues/11#issuecomment-97959352","issue_url":"https://api.github.com/repos/marshmallow-code/flask-marshmallow/issues/11","id":97959352,"user":{"login":"Kareeeeem","id":2920965,"avatar_url":"https://avatars.githubusercontent.com/u/2920965?v=3","gravatar_id":"","url":"https://api.github.com/users/Kareeeeem","html_url":"https://github.com/Kareeeeem","followers_url":"https://api.github.com/users/Kareeeeem/followers","following_url":"https://api.github.com/users/Kareeeeem/following{/other_user}","gists_url":"https://api.github.com/users/Kareeeeem/gists{/gist_id}","starred_url":"https://api.github.com/users/Kareeeeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kareeeeem/subscriptions","organizations_url":"https://api.github.com/users/Kareeeeem/orgs","repos_url":"https://api.github.com/users/Kareeeeem/repos","events_url":"https://api.github.com/users/Kareeeeem/events{/privacy}","received_events_url":"https://api.github.com/users/Kareeeeem/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T20:37:41Z","updated_at":"2015-04-30T20:37:41Z","body":"I figured I'd try and contribute and implement this, but it seems it already works as is. No work needed. I added this test code to start with and it passed.\r\n\r\n```\r\ndef test_hyperlinks_field_many(ma, mockauthor):                                    \r\n    field = ma.Hyperlinks([                                                        \r\n        {                                                                          \r\n            'rel': 'self',                                                         \r\n            'method': 'GET',                                                       \r\n            'href': url_for('author', id=mockauthor.id),                           \r\n        },                                                                         \r\n        {                                                                          \r\n            'rel': 'collection',                                                   \r\n            'method': 'GET',                                                       \r\n            'href': url_for('authors'),                                            \r\n        }                                                                          \r\n    ])                                                                             \r\n                                                                                   \r\n    result = field.serialize('_links', mockauthor)                                 \r\n    assert result == [                                                             \r\n        {                                                                                     \r\n            'rel': 'self',                                                         \r\n            'method': 'GET',                                                       \r\n            'href': url_for('author', id=mockauthor.id),                           \r\n        },                                                                         \r\n        {                                                                          \r\n            'rel': 'collection',                                                   \r\n            'method': 'GET',                                                       \r\n            'href': url_for('authors'),                                            \r\n        }                                                                          \r\n    ]\r\n```"}}