You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, I tend to deal with heterogenous arrays that are used more as tuples in my use case.
{
"a": [
{"b": 1},
{"c": 2},
{"d": 3}
]
}
jtd-infer works great with such a case, producing {"properties":{"a":{"elements":{"optionalProperties":{"b":{"type":"uint8"},"c":{"type":"uint8"},"d":{"type":"uint8"}}}}}}
but when I make one of the elements of the tuple another array
{
"a": [
{"b": 1},
[1, 2],
{"d": 3}
]
}
I get a blank for the entire array
{"properties":{"a":{"elements":{}}}}
Is that the expected behavior? Would you be open to changing it?
The text was updated successfully, but these errors were encountered:
Hi,
In some cases, I tend to deal with heterogenous arrays that are used more as tuples in my use case.
jtd-infer works great with such a case, producing
{"properties":{"a":{"elements":{"optionalProperties":{"b":{"type":"uint8"},"c":{"type":"uint8"},"d":{"type":"uint8"}}}}}}
but when I make one of the elements of the tuple another array
I get a blank for the entire array
{"properties":{"a":{"elements":{}}}}
Is that the expected behavior? Would you be open to changing it?
The text was updated successfully, but these errors were encountered: