gcanti/tcomb-json-schema

Override type object field name / label

Opened this issue · 0 comments

Hello (this package is very useful), I'm facing a problem where I'm defining a field of type Object, for example:

"kIq1M0h00lC0LTwQHo1qtDL" = {"type": "object", "properties": {} }

There's no problem with this at all, everything works as expected. The problem that I'm facing is that the field (kIq1M0h00lC0LTwQHo1qtDL) is rendered on the screen. I would like to know if there's any way to override that field name. I was thinking in something like:

"kIq1M0h00lC0LTwQHo1qtDL" = { "label": "Your label here", "type": "object", "properties": {}}
And the "label" would be the one being rendered instead.
I hope this makes sense, I couldn't find anything related in the documentation though.
Thanks.