Skip to content

Commit cefb86c

Browse files
committed
Added comment to explain why properties is needed
1 parent 0fd2d0c commit cefb86c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

+6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ function build (schema) {
44
/*eslint no-new-func: "off"*/
55
var code = `
66
'use strict'
7+
`
8+
// used to support patternProperties and additionalProperties
9+
// they need to check if a field belongs to the properties in the schema
10+
code += `
711
const properties = ${JSON.stringify(schema.properties)}
12+
`
13+
code += `
814
${$asString.toString()}
915
${$asStringSmall.toString()}
1016
${$asStringLong.toString()}

0 commit comments

Comments
 (0)