Skip to content

Commit 3662786

Browse files
authored
turn on "noExtraProps" flag in auto test (YousefED#563)
1 parent f4600cf commit 3662786

File tree

90 files changed

+156
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+156
-5
lines changed

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ interface ChildFoo {
19011901
}
19021902

19031903
interface Foo {
1904-
readonly childFoos: Foo & ChildFoo;
1904+
readonly childFoos: Foo | ChildFoo;
19051905
}
19061906
```
19071907

test/programs/abstract-class/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"propA": {
56
"type": "number"

test/programs/abstract-extends/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"propA": {
56
"type": "number"

test/programs/annotation-default/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"varBoolean": {
56
"default": true,

test/programs/annotation-id/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MySubObject": {
56
"$id": "filled#",
67
"type": "object",
8+
"additionalProperties": false,
79
"properties": {
810
"a": { "type": "boolean" }
911
},

test/programs/annotation-items/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"a": {
56
"items": {

test/programs/annotation-ref/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"definitions": {
44
"MySubObject": {
5+
"additionalProperties": false,
56
"type": "object"
67
}
78
},
9+
"additionalProperties": false,
810
"properties": {
911
"externalRef": {
1012
"$ref": "http://my-schema.org"

test/programs/annotation-required/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MyDefaultObject": {
6+
"additionalProperties": false,
57
"properties": {
68
"age": {
79
"type": "number"
@@ -17,6 +19,7 @@
1719
"type": "object"
1820
},
1921
"MySubObject": {
22+
"additionalProperties": false,
2023
"properties": {
2124
"bool": {
2225
"type": "boolean"
@@ -46,6 +49,7 @@
4649
"type": "object"
4750
},
4851
"MySubObject2": {
52+
"additionalProperties": false,
4953
"properties": {
5054
"bool": {
5155
"type": "boolean"

test/programs/annotation-title/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"AnotherSubObject": {
6+
"additionalProperties": false,
57
"properties": {
68
"b": {
79
"type": "boolean"
@@ -11,6 +13,7 @@
1113
"type": "object"
1214
},
1315
"MySubObject": {
16+
"additionalProperties": false,
1417
"title": "filled#",
1518
"type": "object",
1619
"properties": {

test/programs/annotation-tjs/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"dateTime": {
56
"format": "date-time",

test/programs/any-unknown/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"type": "object",
3+
"additionalProperties": false,
34
"properties": {
45
"a": {},
56
"b": {}

test/programs/argument-id/schema.MyObject.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"$id": "someSchemaId",
33
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"additionalProperties": false,
45
"definitions": {
56
"ReferenceType": {
7+
"additionalProperties": false,
68
"properties": {
79
"reference": {
810
"const": true,

test/programs/array-and-description/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"description": {
56
"type": "string"

test/programs/builtin-names/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Ext.Array": {
6+
"additionalProperties": false,
57
"type": "object"
68
}
79
},

test/programs/class-extends/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"propA": {
56
"type": "number"

test/programs/class-single/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"propA": {
56
"type": "number"

test/programs/comments-from-lib/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"description": "Use this comment",
3+
"additionalProperties": false,
34
"type": "object",
45
"properties": {
56
"prop1": {

test/programs/comments-imports/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Color": {
56
"description": "Description of Color.",
67
"pattern": "^[0-9a-f]{6}$",
78
"type": "string"
89
},
910
"Text": {
11+
"additionalProperties": false,
1012
"description": "Description of Text interface.",
1113
"properties": {
1214
"color": {

test/programs/comments-inline-tags/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"description": "This is MyObject. It extends {@link MyOtherObject} and {@link SomeOtherObject}.",
45
"properties": {
56
"prop1": {

test/programs/comments-override/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MySubObject": {
56
"additionalProperties": true,

test/programs/comments/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"type": "array"
2020
},
2121
"rotation": {
22+
"additionalProperties": false,
2223
"description": "Description of rotation, a field with an anonymous type",
2324
"properties": {
2425
"yaw": {

test/programs/const-keyword/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"value": {
56
"const": "value",

test/programs/custom-dates/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"foo.Date": {
6+
"additionalProperties": false,
57
"properties": {
68
"day": {
79
"type": "number"

test/programs/dates/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"var1": {
56
"format": "date-time",

test/programs/default-properties/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Foo": {
56
"anyOf": [

test/programs/enums-mixed/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Enum": {
56
"enum": [

test/programs/enums-number/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Enum": {
56
"enum": [

test/programs/enums-string/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Enum": {
56
"enum": [

test/programs/enums-value-in-interface/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"A.B": {
56
"const": 0,

test/programs/force-type-imported/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Widget": {
56
"type": "number"

test/programs/force-type/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"Widget": {
56
"type": "number"

test/programs/generate-all-types/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
"type": "number"
77
},
88
"MyInterface": {
9+
"additionalProperties": false,
910
"type": "object"
1011
},
1112
"MyObject": {
13+
"additionalProperties": false,
1214
"type": "object"
1315
}
1416
}

test/programs/generic-anonymous/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MyGeneric<number,string>": {
6+
"additionalProperties": false,
57
"properties": {
68
"a": {
79
"type": "number"
@@ -17,6 +19,7 @@
1719
"type": "object"
1820
},
1921
"MyGeneric<string,number>": {
22+
"additionalProperties": false,
2023
"properties": {
2124
"a": {
2225
"type": "string"

test/programs/generic-arrays/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"numberArray": {
56
"items": {

test/programs/generic-multiargs/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MyGeneric<number,string>": {
6+
"additionalProperties": false,
57
"properties": {
68
"a": {
79
"type": "number"
@@ -17,6 +19,7 @@
1719
"type": "object"
1820
},
1921
"MyGeneric<string,number>": {
22+
"additionalProperties": false,
2023
"properties": {
2124
"a": {
2225
"type": "string"

test/programs/generic-multiple/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MyGeneric<number>": {
6+
"additionalProperties": false,
57
"properties": {
68
"field": {
79
"type": "number"
@@ -13,6 +15,7 @@
1315
"type": "object"
1416
},
1517
"MyGeneric<string>": {
18+
"additionalProperties": false,
1619
"properties": {
1720
"field": {
1821
"type": "string"

test/programs/generic-recursive/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"$schema": "http://json-schema.org/draft-07/schema#",
44
"definitions": {
55
"MyGeneric<number,string>": {
6+
"additionalProperties": false,
67
"properties": {
78
"field": {
89
"$ref": "#/definitions/MyGeneric<string,number>"
@@ -14,6 +15,7 @@
1415
"type": "object"
1516
},
1617
"MyGeneric<string,number>": {
18+
"additionalProperties": false,
1719
"properties": {
1820
"field": {
1921
"$ref": "#/definitions/MyGeneric<number,string>"
@@ -25,6 +27,7 @@
2527
"type": "object"
2628
},
2729
"MyObject": {
30+
"additionalProperties": false,
2831
"properties": {
2932
"value": {
3033
"$ref": "#/definitions/MyGeneric<string,number>"

test/programs/generic-simple/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"definitions": {
45
"MyGeneric<number>": {
6+
"additionalProperties": false,
57
"properties": {
68
"field": {
79
"type": "number"

test/programs/ignored-required/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": false,
34
"properties": {
45
"required": {
56
"type": "boolean"

0 commit comments

Comments
 (0)