json-schema-form / json-schema-form-core

Core library
MIT License
65 stars 13 forks source link

How to use the core lib? #2

Open timwis opened 7 years ago

timwis commented 7 years ago

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

Anthropic commented 7 years ago

@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 commented 7 years ago

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

timwis commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

@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 commented 6 years ago

Good Day

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