Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

add support for ad hoc properties on non-object fields #15

Open
volkanunsal opened this issue Oct 21, 2015 · 6 comments
Open

add support for ad hoc properties on non-object fields #15

volkanunsal opened this issue Oct 21, 2015 · 6 comments

Comments

@volkanunsal
Copy link

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.

@alvaromb
Copy link
Collaborator

@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?

@gcanti
Copy link
Owner

gcanti commented Sep 26, 2017

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

@alvaromb
Copy link
Collaborator

@alvaromb
Copy link
Collaborator

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.

@gcanti
Copy link
Owner

gcanti commented Sep 26, 2017

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

@alvaromb
Copy link
Collaborator

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.

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

No branches or pull requests

3 participants