Skip to content

Commit 3a8fd6b

Browse files
authored
Merge e760ee1 into eede11d
2 parents eede11d + e760ee1 commit 3a8fd6b

File tree

7 files changed

+42
-89
lines changed

7 files changed

+42
-89
lines changed

projects/igniteui-angular/migrations/common/schema/binding.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
},
4444
"ElementType": {
4545
"enum": [
46-
"component",
47-
"directive"
46+
"directive",
47+
"component"
4848
],
4949
"type": "string"
5050
},

projects/igniteui-angular/migrations/common/schema/class.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-06/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
33
"definitions": {
44
"ClassChange": {
55
"properties": {

projects/igniteui-angular/migrations/common/schema/imports.schema.json

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"ImportsChange": {
5+
"properties": {
6+
"name": {
7+
"description": "Name of the module to change",
8+
"type": "string"
9+
},
10+
"replaceWith": {
11+
"description": "Replace original name with new one",
12+
"type": "string"
13+
}
14+
},
15+
"required": [
16+
"name",
17+
"replaceWith"
18+
],
19+
"type": "object"
20+
}
21+
},
322
"properties": {
4-
"name": {
5-
"description": "Name of the module to change",
6-
"type": "string"
7-
},
8-
"replaceWith": {
9-
"description": "Replace original name with new one",
10-
"type": "string"
23+
"changes": {
24+
"description": "An array of changes to imports array",
25+
"items": {
26+
"$ref": "#/definitions/ImportsChange"
27+
},
28+
"type": "array"
1129
}
1230
},
1331
"required": [
14-
"name",
15-
"replaceWith"
32+
"changes"
1633
],
1734
"type": "object"
1835
}

projects/igniteui-angular/migrations/common/schema/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// generate schema:
2-
// npx typescript-json-schema migrations/common/schema/index.ts SelectorChanges -o migrations/common/schema/selector.schema.json --required
2+
// npx typescript-json-schema projects/igniteui-angular/migrations/common/schema/index.ts ThemeChanges -o projects/igniteui-angular/migrations/common/schema/theme-changes.schema.json --required
33

44
export interface ThemeChanges {
55
/** An array of changes to theme function properties */

projects/igniteui-angular/migrations/common/schema/selector.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"definitions": {
44
"ElementType": {
55
"enum": [
6-
"component",
7-
"directive"
6+
"directive",
7+
"component"
88
],
99
"type": "string"
1010
},

projects/igniteui-angular/migrations/common/schema/theme-changes.schema.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@
2424
"description": "The type of the change: variable, function, mixin"
2525
}
2626
},
27+
"required": [
28+
"name",
29+
"type"
30+
],
2731
"type": "object"
2832
},
2933
"ThemeType": {
3034
"enum": [
31-
"function",
32-
"mixin",
35+
"variable",
3336
"property",
34-
"variable"
37+
"function",
38+
"mixin"
3539
],
3640
"type": "string"
3741
}
@@ -45,6 +49,9 @@
4549
"type": "array"
4650
}
4751
},
52+
"required": [
53+
"changes"
54+
],
4855
"type": "object"
4956
}
5057

projects/igniteui-angular/migrations/common/schema/theme-props.schema.json

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)