Skip to content

angular-schema-form and json-refs #564

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

Closed
parvanova opened this issue Sep 29, 2015 · 3 comments
Closed

angular-schema-form and json-refs #564

parvanova opened this issue Sep 29, 2015 · 3 comments

Comments

@parvanova
Copy link

Hello,

first of all thank you for the great module!
I as many others was looking for solution for resolving $ref in schemas. And after reading the issues where it is discussed decided to try the workaround that was shared in this issue - #118.
I can say it works but after a few clicks on the page.
When the page is loaded the form is rendered without $refs being resolved. So the form element for the schema property where the $ref is user is not displayed. But after 1- 2 clicks the form is being redrawn and the refs are resolved.

Here is the plinkr - http://plnkr.co/edit/JtEKcdmqvzPFUh0YOqYy?p=preview

Can you please advice what am I doing wrong?
Thank you

@Anthropic
Copy link
Member

You're setting the schema twice, you want to save it as a different variable first, then set it as the schema for ASF once the load of refs has completed.

@Anthropic
Copy link
Member

Please re-open if you do not feel the question has been answered sufficiently.

@Anthropic
Copy link
Member

As of 1.0.0-alpha.2 $ref is supported as a preprocessing step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants