jupe / mongoose-jsonform

Mongoose-schema plugin for generate jsonform supported json schema.
Other
4 stars 1 forks source link

Mixed Type missing #2

Open AlexAlbala opened 10 years ago

AlexAlbala commented 10 years ago

I have been working with mongoose-jsonform in several projects and it's working fine.

Now I want to use "Mixed" schema type but I have seen that it is not supported yet.

I have changed the switch inside getType function (mongoose-jsonform.js) and I added the case:

case('Mixed'): return {type: 'object'};

And it is working for me.

I don't understand why are you saying that Mixed type is not ambiguous, I am missing something ? What am I doing wrong?

Thank you for your time :)

jupe commented 9 years ago

You are probably right. Can you create PR for this?

jupe commented 8 years ago

by the way, how jsonform manage schema where type is object without properties -field? is that the case you mention?