Open AlexAlbala opened 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 :)
You are probably right. Can you create PR for this?
by the way, how jsonform manage schema where type is object without properties -field? is that the case you mention?
type
object
properties
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 :)