Skip to content
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

How to use the core lib? #2

Open
timwis opened this issue Sep 25, 2016 · 6 comments
Open

How to use the core lib? #2

timwis opened this issue Sep 25, 2016 · 6 comments

Comments

@timwis
Copy link

timwis commented Sep 25, 2016

Hello, I'd like to use the core lib without a framework. Is there an example of that anywhere?

@Anthropic
Copy link
Member

Anthropic commented Sep 25, 2016

@timwis currently we're integrating it with the angular-schema-form webpack-babel branch which you can look at for clues. But there is still more to move from the ASF repo into this one, like validation is still using tv4 and wrapped in a service in that repo. You could copy the way it handles it.

Can I ask what your main intent is, may help with pointers :)

@Anthropic
Copy link
Member

@timwis for example there has already been interest in a pure javascript non-angular version.

@timwis
Copy link
Author

timwis commented Sep 27, 2016

Hi @Anthropic thanks for the response. I'm working on an app that lets users design a form and a workflow associated with its submission. I was hoping to standardize on JSON Schema and use a form designer as well as a form renderer. Your org has the first form designer I've seen for JSON Schema. DOBT has a nice one but it uses a more generic schema (though I've suggested otherwise).

The JSON Schema form renderers that are out there (which are linked to in the last link) - almost all of them depend on jQuery, which is pretty overkill for what they need to do in my opinion. I was looking forward to a more modern renderer with few/lightweight dependencies. Ideally something that I could pass a container element to, along with the schema object, and it would append form elements to the container.

@Anthropic
Copy link
Member

@timwis that is definitely something we want and is the main reason we separated the core as the originator of this framework wants a pure lightweight JavaScript implementation. I do not expect that it would be overly difficult. Just need the resources to do it. @davidlgj from Textalk will hopefully have some input on any plans they may have. I am more than happy to assist anyone interested in working on it too.

@nicklasb
Copy link
Member

nicklasb commented Sep 27, 2016

@timwis
The form designer/generator is made to be possible to use inside an application and is ES6:
https://github.com/json-schema-form/json-schema-form-generator-es6

@blacksnow88
Copy link

Good Day

I cant seem to get this working using draft-v4 JSON Schema, any advise?

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

4 participants