-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
Thank you for this nice library, it's quite useful.
I'm facing an issue right now with the formatting of a nested array of strings. It's probably just a missing feature, but I really expected it to work. Maybe I'm doing something wrong?
This gives me an error:
await n.array(
n.type({
customerId: n.string('po.dis_code'),
orderNumber: n.string('po.orderingporef', {id: true}),
orderLines: n.array(
n.type({
lineId: n.string('pol.orderingreference', {id: true}),
price: n.number('po.unitprice'),
activationNumber: **n.array(n.string('s.code'))**
})
)
})
).withQuery(q)
Error: invalid structPropToColumnMap format - property 'id' must be either a string, a plain object or an array
and this doesn't:
await n.array(
n.type({
customerId: n.string('po.dis_code'),
orderNumber: n.string('po.orderingporef', {id: true}),
orderLines: n.array(
n.type({
lineId: n.string('pol.orderingreference', {id: true}),
price: n.number('po.unitprice'),
activationNumber: **n.array(n.type({a: n.string('s.code')}))**
})
)
})
).withQuery(q)
Anyway, it would be nice to be able to nest arrays of strings.
Regards
Metadata
Metadata
Assignees
Labels
No labels