{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-dataformat-yaml/issues/45","labels_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-yaml/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-yaml/issues/45/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-yaml/issues/45/events","html_url":"https://github.com/FasterXML/jackson-dataformat-yaml/issues/45","id":114118908,"number":45,"title":"Clarification on anchors in map collections","user":{"login":"kevinteg","id":599782,"avatar_url":"https://avatars.githubusercontent.com/u/599782?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinteg","html_url":"https://github.com/kevinteg","followers_url":"https://api.github.com/users/kevinteg/followers","following_url":"https://api.github.com/users/kevinteg/following{/other_user}","gists_url":"https://api.github.com/users/kevinteg/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinteg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinteg/subscriptions","organizations_url":"https://api.github.com/users/kevinteg/orgs","repos_url":"https://api.github.com/users/kevinteg/repos","events_url":"https://api.github.com/users/kevinteg/events{/privacy}","received_events_url":"https://api.github.com/users/kevinteg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-29T18:39:21Z","updated_at":"2015-12-26T21:36:44Z","closed_at":"2015-12-26T21:01:57Z","body":"I am trying to parse yaml generated by pyyaml and am running into problems parsing it in Jackson.  Sample:\r\n\r\n    foo:\r\n    - &id0001\r\n      name: bar\r\n      description: baz\r\n\r\nThere were two issues I encountered and I would really appreciate some input.\r\n\r\n1) When I try to process this (after modification made in (2)), I get:\r\n\r\n\"Unresolved forward references for: Object id [1] (for class ...) at [Source: foo.yml; line: Y, column: X].\"\r\n\r\nIf I modify the yaml to:\r\n\r\n    foo:\r\n    - &0001 name: bar\r\n      description: baz\r\n\r\nit processes fine.  The examples I have seen lead me to believe that the original format should work. http://yaml.org/YAML_for_ruby.html#aliases_and_anchors\r\n\r\nI read the tests and found two examples, but didn't see one specifically for collection of maps.\r\n\r\n[SimpleParseTest.java] (https://github.com/FasterXML/jackson-dataformat-yaml/blob/8a1961a203e69419ce90cbd68570f4400f352c81/src/test/java/com/fasterxml/jackson/dataformat/yaml/SimpleParseTest.java#L183)\r\n[ObjectIdTest.java] (https://github.com/FasterXML/jackson-dataformat-yaml/blob/master/src/test/java/com/fasterxml/jackson/dataformat/yaml/ObjectIdTest.java#L32)\r\n\r\n2)  pyyaml uses an anchor format of u'id%03d'.  From what I can tell, Jackson uses ints.  I modified anchor format in the pyyaml module, but I'm wondering if it is possible to use String anchors in Jackson.\r\n\r\nThanks in advance!\r\n\r\n\r\n\r\n    "},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-dataformat-yaml/issues/comments/167364524","html_url":"https://github.com/FasterXML/jackson-dataformat-yaml/issues/45#issuecomment-167364524","issue_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-yaml/issues/45","id":167364524,"user":{"login":"cowtowncoder","id":55065,"avatar_url":"https://avatars.githubusercontent.com/u/55065?v=3","gravatar_id":"","url":"https://api.github.com/users/cowtowncoder","html_url":"https://github.com/cowtowncoder","followers_url":"https://api.github.com/users/cowtowncoder/followers","following_url":"https://api.github.com/users/cowtowncoder/following{/other_user}","gists_url":"https://api.github.com/users/cowtowncoder/gists{/gist_id}","starred_url":"https://api.github.com/users/cowtowncoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowtowncoder/subscriptions","organizations_url":"https://api.github.com/users/cowtowncoder/orgs","repos_url":"https://api.github.com/users/cowtowncoder/repos","events_url":"https://api.github.com/users/cowtowncoder/events{/privacy}","received_events_url":"https://api.github.com/users/cowtowncoder/received_events","type":"User","site_admin":false},"created_at":"2015-12-26T21:36:44Z","updated_at":"2015-12-26T21:36:44Z","body":"For what it is worth 2.70 will now have `ObjectIdGenerators.StringIdGenerator` to use for this use case."}}