Skip to content

Commit

Permalink
feat: make stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Oct 11, 2024
1 parent 0fbdc04 commit 01af20c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/build-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,23 @@ const run = async () => {
if (!required[col.colname]) {
required[col.colname] = {
if: {
type: 'object',
unevaluatedProperties: false,
properties: {
[requiredMapping[field]]: { enum: [] }
},
required: [requiredMapping[field]]
},
then: {
type: 'object',
unevaluatedProperties: false,
properties: {},
required: requiredMapping[col.colname]
}
}
// required to allow use of strict
for (const property of requiredMapping[col.colname]) {
required[col.colname].then.properties[property] = {}
required[col.colname].then.properties[property] = true
}
}
}
Expand Down

0 comments on commit 01af20c

Please sign in to comment.