Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"ElementType": {
"enum": [
"component",
"directive"
"directive",
"component"
],
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ClassChange": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ImportsChange": {
"properties": {
"name": {
"description": "Name of the module to change",
"type": "string"
},
"replaceWith": {
"description": "Replace original name with new one",
"type": "string"
}
},
"required": [
"name",
"replaceWith"
],
"type": "object"
}
},
"properties": {
"name": {
"description": "Name of the module to change",
"type": "string"
},
"replaceWith": {
"description": "Replace original name with new one",
"type": "string"
"changes": {
"description": "An array of changes to imports array",
"items": {
"$ref": "#/definitions/ImportsChange"
},
"type": "array"
}
},
"required": [
"name",
"replaceWith"
"changes"
],
"type": "object"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// generate schema:
// npx typescript-json-schema migrations/common/schema/index.ts SelectorChanges -o migrations/common/schema/selector.schema.json --required
// 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

export interface ThemeChanges {
/** An array of changes to theme function properties */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"definitions": {
"ElementType": {
"enum": [
"component",
"directive"
"directive",
"component"
],
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@
"description": "The type of the change: variable, function, mixin"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"ThemeType": {
"enum": [
"function",
"mixin",
"variable",
"property",
"variable"
"function",
"mixin"
],
"type": "string"
}
Expand All @@ -45,6 +49,9 @@
"type": "array"
}
},
"required": [
"changes"
],
"type": "object"
}

This file was deleted.

Loading