Open brupxxxlgroup opened 2 months ago
@brupxxxlgroup as for your initial question - well because this is the way zod works when it parses data. Using your example the following:
dataSourceSchema.safeParse({
uri: 'some uri',
date: 'some date',
})
would result in { success: true, data: { uri: 'some uri', date: 'some date' } }
and so would passing urn: null
. So it should be nullable.
As for your other question. This is an interesting one. We should look into it, however I do not know when we would be able to present a fix.
Following schema definition
will produce following yaml
Why is it that
I have tried to work around with
But when referencing this schema from another schema like this
the yaml seems not correct to me
What am i doing wrong? Why is it generating this strange allOff
Thx. for help!