gcanti/tcomb-json-schema

add support for ad hoc properties on non-object fields

Opened this issue · 6 comments

Recently I tried using this to create a form builder. My use case required passing attributes for a string field in the JSON schema. But I discovered that only object fields can receive properties. This makes sense if the usecase were simply to create types, but for creating form fields, there needs to be a better solution. Perhaps another project called tcomb-form-json-schema.

@gcanti we built something similar for one of our projects, with an options and value parser. It's a bit coupled to our use-case, but I think it's a good starting point.

Do you prefer us to put those files into a separated repo or integrate into this one?

@alvaromb not sure, is there something online I can peek?

I can't comment a lot about it bc it wasn't developed by me, but the idea is to extract and parse the options and the values of the form.

Ah ok thanks, yes it's coupled to your use-case, better to keep this library agnostic

Ok, will keep it in a separated repo then. Will be orientated towards React Native, so maybe somebody will see it useful. How do you feel about tcomb-form-native-json-schema?

It will be able to bridge JSON schema to tcomb-form-native components.