Skip to content

Commit b1b0432

Browse files
committed
feat: Updated JSON schema, fixed validation errors and added descriptions. Updated get resource info schema.
1 parent 120c1ce commit b1b0432

5 files changed

Lines changed: 103 additions & 109 deletions

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.65",
3+
"version": "1.0.69",
44
"description": "",
55
"type": "module",
66
"main": "dist/index.js",

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@
4040
"type": "array",
4141
"items": {
4242
"type": "string"
43-
}
43+
},
44+
"description": "A list of properties that are required for importing and destroying a resource"
45+
},
46+
"preventImport": {
47+
"type": "boolean",
48+
"description": "Controls whether a resource can be imported. For example: action resources cannot be imported"
4449
}
4550
}
4651
},

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('Get resources response data schema', () => {
5252
requiredParameters: ['plugin'],
5353
},
5454
importAndDestroy: {
55+
preventImport: true,
5556
requiredProperties: ['plugin']
5657
},
5758
allowMultiple: {
@@ -102,6 +103,7 @@ describe('Get resources response data schema', () => {
102103
requiredParameters: ['plugin'],
103104
},
104105
importAndDestroy: {
106+
preventImport: true,
105107
requiredParameters: ['plugin'],
106108
},
107109
allowMultiple: {

0 commit comments

Comments
 (0)