File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ function addPatternProperties (location) {
297
297
}
298
298
299
299
function additionalProperty ( location ) {
300
- let ap = location . schema . additionalProperties
300
+ const ap = location . schema . additionalProperties
301
301
let code = ''
302
302
if ( ap === true ) {
303
303
code += `
@@ -309,10 +309,10 @@ function additionalProperty (location) {
309
309
310
310
return code
311
311
}
312
+
312
313
let apLocation = mergeLocation ( location , 'additionalProperties' )
313
- if ( ap . $ref ) {
314
- apLocation = resolveRef ( location , ap . $ref )
315
- ap = apLocation . schema
314
+ if ( apLocation . schema . $ref ) {
315
+ apLocation = resolveRef ( apLocation , apLocation . schema . $ref )
316
316
}
317
317
318
318
const valueCode = buildValue ( apLocation , 'obj[keys[i]]' )
You can’t perform that action at this time.
0 commit comments