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",

0 commit comments

Comments
 (0)