{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/69","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/69/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/69/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/69","id":40661370,"number":69,"title":"Does this support $ref?","user":{"login":"dkengaroo","id":5048295,"avatar_url":"https://avatars.githubusercontent.com/u/5048295?v=3","gravatar_id":"","url":"https://api.github.com/users/dkengaroo","html_url":"https://github.com/dkengaroo","followers_url":"https://api.github.com/users/dkengaroo/followers","following_url":"https://api.github.com/users/dkengaroo/following{/other_user}","gists_url":"https://api.github.com/users/dkengaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/dkengaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkengaroo/subscriptions","organizations_url":"https://api.github.com/users/dkengaroo/orgs","repos_url":"https://api.github.com/users/dkengaroo/repos","events_url":"https://api.github.com/users/dkengaroo/events{/privacy}","received_events_url":"https://api.github.com/users/dkengaroo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Textalk/angular-schema-form/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-08-20T03:58:28Z","updated_at":"2015-01-08T15:11:07Z","closed_at":null,"body":"Hiya,\r\n\r\nI have a schema with \r\n\"$schema\": \"http://json-schema.org/draft-04/schema#\",\r\n        \"title\": \"title\",\r\n        \"type\": \"object\",\r\n        \"item\": {\r\n                \"type\": \"object\",\r\n                \"properties\": {\r\n                    \"attribute\": {\r\n                        \"$ref\": \"#/definitions/schema2\"\r\n                    }\r\n                },\r\n                \"required\": [\r\n                    \"attribute_info\"\r\n                ]\r\n            } \r\n.... \r\nsomething like that.\r\n\r\nI kept the form simple with the \"*\" and a submit button. However the form doesn't render properly where the $ref is.\r\n\r\nam I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/69192010","html_url":"https://github.com/Textalk/angular-schema-form/issues/69#issuecomment-69192010","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/69","id":69192010,"user":{"login":"davidlgj","id":151694,"avatar_url":"https://avatars.githubusercontent.com/u/151694?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlgj","html_url":"https://github.com/davidlgj","followers_url":"https://api.github.com/users/davidlgj/followers","following_url":"https://api.github.com/users/davidlgj/following{/other_user}","gists_url":"https://api.github.com/users/davidlgj/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlgj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlgj/subscriptions","organizations_url":"https://api.github.com/users/davidlgj/orgs","repos_url":"https://api.github.com/users/davidlgj/repos","events_url":"https://api.github.com/users/davidlgj/events{/privacy}","received_events_url":"https://api.github.com/users/davidlgj/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T15:11:07Z","updated_at":"2015-01-08T15:11:07Z","body":"@eskatos and @fiddur  yes a tree structure is a relevant example but IMHO not best solved this way. By rendering it with with schema form it would just be a russion doll of forms withing fieldsets within forms within fieldsets. Each child getting smaller and smaller. \r\n\r\nThe only way to get around that is to make a new form type (an add-on), that renders a tree properly (which also could add features ). This is possible to do today without $ref support because it's only the add-on that needs to handle the $refs in that case. And it can still use the standard way to render each node in the tree. \r\n\r\nThat said if you then had such a recursive structure + some other refs that you *do* want to have resolved you wouldn't be able to resolve them before hand. It might still be a good idea to actually support $ref in the schema, probably in the same fashion as tv4 does it. "}}