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) {
297297}
298298
299299function additionalProperty ( location ) {
300- let ap = location . schema . additionalProperties
300+ const ap = location . schema . additionalProperties
301301 let code = ''
302302 if ( ap === true ) {
303303 code += `
@@ -309,10 +309,10 @@ function additionalProperty (location) {
309309
310310 return code
311311 }
312+
312313 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 )
316316 }
317317
318318 const valueCode = buildValue ( apLocation , 'obj[keys[i]]' )
You can’t perform that action at this time.
0 commit comments