Skip to content

Commit 120c1ce

Browse files
committed
feat: Added back import block for getResourceInfo to be backwards compatible
1 parent c2d2b53 commit 120c1ce

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codify-schemas",
3-
"version": "1.0.63",
3+
"version": "1.0.65",
44
"description": "",
55
"type": "module",
66
"main": "dist/index.js",

src/messages/get-resource-info-response-data-schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@
2222
"type": "string"
2323
}
2424
},
25+
"import": {
26+
"type": "object",
27+
"properties": {
28+
"requiredProperties": {
29+
"type": "array",
30+
"items": {
31+
"type": "string"
32+
}
33+
}
34+
}
35+
},
2536
"importAndDestroy": {
2637
"type": "object",
2738
"properties": {

src/messages/get-resource-info-response-data-schema.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ describe('Get resources response data schema', () => {
4848
],
4949

5050
},
51+
import: {
52+
requiredParameters: ['plugin'],
53+
},
5154
importAndDestroy: {
5255
requiredProperties: ['plugin']
5356
},
@@ -95,6 +98,9 @@ describe('Get resources response data schema', () => {
9598
"typeB"
9699
]
97100
},
101+
import: {
102+
requiredParameters: ['plugin'],
103+
},
98104
importAndDestroy: {
99105
requiredParameters: ['plugin'],
100106
},

0 commit comments

Comments
 (0)