Skip to content

Commit cf26b9f

Browse files
committed
Fix descriptions in makeBlockDefault
1 parent ad19e2c commit cf26b9f

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

test-generator/prototype-safe.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ const makeBlockDefault = (name, proto) => `
127127
${makeRequired(name)}
128128
},
129129
{
130-
"description": "Does not see inexisting elements on new objects: '${inline(name)}' via required",
130+
"description": "Does not see inexisting elements on new objects: '${inline(name)}' as number",
131131
"comment": "Validating a new object should not be affected by previous default",
132132
${makeNumber(name)}
133133
},
134134
{
135-
"description": "Does not see inexisting elements on new objects: '${inline(name)}' via required",
135+
"description": "Does not see inexisting elements on new objects: '${inline(name)}' as object",
136136
"comment": "Validating a new object should not be affected by previous default",
137137
${makeObject(name)}
138138
}`

tests/draft2019-09/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -393,7 +393,7 @@
393393
]
394394
},
395395
{
396-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
396+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
397397
"comment": "Validating a new object should not be affected by previous default",
398398
"schema": {
399399
"properties": { "foo": { "type": "object" } }
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as number",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -497,7 +497,7 @@
497497
]
498498
},
499499
{
500-
"description": "Does not see inexisting elements on new objects: 'length' via required",
500+
"description": "Does not see inexisting elements on new objects: 'length' as object",
501501
"comment": "Validating a new object should not be affected by previous default",
502502
"schema": {
503503
"properties": { "length": { "type": "object" } }
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }
@@ -601,7 +601,7 @@
601601
]
602602
},
603603
{
604-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
604+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
605605
"comment": "Validating a new object should not be affected by previous default",
606606
"schema": {
607607
"properties": { "__proto__": { "type": "object" } }

tests/draft4/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -393,7 +393,7 @@
393393
]
394394
},
395395
{
396-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
396+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
397397
"comment": "Validating a new object should not be affected by previous default",
398398
"schema": {
399399
"properties": { "foo": { "type": "object" } }
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as number",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -497,7 +497,7 @@
497497
]
498498
},
499499
{
500-
"description": "Does not see inexisting elements on new objects: 'length' via required",
500+
"description": "Does not see inexisting elements on new objects: 'length' as object",
501501
"comment": "Validating a new object should not be affected by previous default",
502502
"schema": {
503503
"properties": { "length": { "type": "object" } }
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }
@@ -601,7 +601,7 @@
601601
]
602602
},
603603
{
604-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
604+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
605605
"comment": "Validating a new object should not be affected by previous default",
606606
"schema": {
607607
"properties": { "__proto__": { "type": "object" } }

tests/draft6/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -393,7 +393,7 @@
393393
]
394394
},
395395
{
396-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
396+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
397397
"comment": "Validating a new object should not be affected by previous default",
398398
"schema": {
399399
"properties": { "foo": { "type": "object" } }
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as number",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -497,7 +497,7 @@
497497
]
498498
},
499499
{
500-
"description": "Does not see inexisting elements on new objects: 'length' via required",
500+
"description": "Does not see inexisting elements on new objects: 'length' as object",
501501
"comment": "Validating a new object should not be affected by previous default",
502502
"schema": {
503503
"properties": { "length": { "type": "object" } }
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }
@@ -601,7 +601,7 @@
601601
]
602602
},
603603
{
604-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
604+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
605605
"comment": "Validating a new object should not be affected by previous default",
606606
"schema": {
607607
"properties": { "__proto__": { "type": "object" } }

tests/draft7/prototype-safe.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
]
374374
},
375375
{
376-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
376+
"description": "Does not see inexisting elements on new objects: 'foo' as number",
377377
"comment": "Validating a new object should not be affected by previous default",
378378
"schema": {
379379
"properties": { "foo": { "type": "number" } }
@@ -393,7 +393,7 @@
393393
]
394394
},
395395
{
396-
"description": "Does not see inexisting elements on new objects: 'foo' via required",
396+
"description": "Does not see inexisting elements on new objects: 'foo' as object",
397397
"comment": "Validating a new object should not be affected by previous default",
398398
"schema": {
399399
"properties": { "foo": { "type": "object" } }
@@ -477,7 +477,7 @@
477477
]
478478
},
479479
{
480-
"description": "Does not see inexisting elements on new objects: 'length' via required",
480+
"description": "Does not see inexisting elements on new objects: 'length' as number",
481481
"comment": "Validating a new object should not be affected by previous default",
482482
"schema": {
483483
"properties": { "length": { "type": "number" } }
@@ -497,7 +497,7 @@
497497
]
498498
},
499499
{
500-
"description": "Does not see inexisting elements on new objects: 'length' via required",
500+
"description": "Does not see inexisting elements on new objects: 'length' as object",
501501
"comment": "Validating a new object should not be affected by previous default",
502502
"schema": {
503503
"properties": { "length": { "type": "object" } }
@@ -581,7 +581,7 @@
581581
]
582582
},
583583
{
584-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
584+
"description": "Does not see inexisting elements on new objects: '__proto__' as number",
585585
"comment": "Validating a new object should not be affected by previous default",
586586
"schema": {
587587
"properties": { "__proto__": { "type": "number" } }
@@ -601,7 +601,7 @@
601601
]
602602
},
603603
{
604-
"description": "Does not see inexisting elements on new objects: '__proto__' via required",
604+
"description": "Does not see inexisting elements on new objects: '__proto__' as object",
605605
"comment": "Validating a new object should not be affected by previous default",
606606
"schema": {
607607
"properties": { "__proto__": { "type": "object" } }

0 commit comments

Comments
 (0)