File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -374,14 +374,15 @@ function buildInnerObject (context, location) {
374374 addComma = '!addComma && (addComma = true) || (json += JSON_STR_COMMA)'
375375 }
376376
377+ let counterValue = 0
377378 for ( const key of propertiesKeys ) {
378379 let propertyLocation = propertiesLocation . getPropertyLocation ( key )
379380 if ( propertyLocation . schema . $ref ) {
380381 propertyLocation = resolveRef ( context , propertyLocation )
381382 }
382383
383384 const sanitizedKey = JSON . stringify ( key )
384- const value = 'value_' + key . replace ( / [ ^ a - z A - Z 0 - 9 ] / g, '_' )
385+ const value = 'value_' + key . replace ( / [ ^ a - z A - Z 0 - 9 ] / g, '_' ) + '_' + ( counterValue ++ )
385386 const defaultValue = propertyLocation . schema . default
386387 const isRequired = requiredProperties . includes ( key )
387388
You can’t perform that action at this time.
0 commit comments