codify-schemas 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/config-file-schema.json +2 -2
- package/src/config-file-schema.test.ts +2 -2
- package/src/ipc-message-schema.json +1 -1
- package/src/ipc-message-schema.test.ts +2 -2
- package/src/messages/apply-request-data-schema.json +1 -1
- package/src/messages/apply-response-data-schema.json +1 -1
- package/src/messages/error-response-data-schema.json +1 -1
- package/src/messages/get-resources-response-data-schema.json +2 -2
- package/src/messages/get-resources-response-data-schema.test.ts +2 -3
- package/src/messages/plan-request-data-schema.json +2 -2
- package/src/messages/plan-request-data-schema.test.ts +2 -2
- package/src/messages/plan-response-data-schema.json +1 -1
- package/src/messages/validate-request-data-schema.json +2 -2
- package/src/messages/validate-response-data-schema.json +1 -1
- package/src/project-schema.json +1 -1
- package/src/project-schema.test.ts +2 -2
- package/src/resource-schema.json +1 -1
- package/src/resource-schema.test.ts +2 -2
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://www.codify.com/config-file-schema.json",
|
|
4
4
|
"title": "Config file Schema",
|
|
5
5
|
"type": "array",
|
|
6
6
|
"items": {
|
|
7
|
-
"
|
|
7
|
+
"$ref": "resource-schema.json"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import configSchema from './config-file-schema.json';
|
|
2
2
|
import resourceSchema from './resource-schema.json';
|
|
3
3
|
import { describe, it, expect } from 'vitest'
|
|
4
|
-
import
|
|
4
|
+
import Ajv2020 from 'ajv/dist/2020.js'
|
|
5
5
|
|
|
6
|
-
const ajv = new
|
|
6
|
+
const ajv = new Ajv2020.default({
|
|
7
7
|
strict: true,
|
|
8
8
|
})
|
|
9
9
|
ajv.addSchema(resourceSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://www.codify.com/apply-request-data-schema.json",
|
|
4
4
|
"title": "Apply Request Schema Data",
|
|
5
5
|
"description": "Apply the previously generated plan. The plan must already be generated in order for apply to work.",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://www.codify.com/get-resources-response-data-schema.json",
|
|
4
4
|
"title": "Get Resources Response Schema Data",
|
|
5
5
|
"type": "object",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "object",
|
|
11
11
|
"properties": {
|
|
12
12
|
"type": {
|
|
13
|
-
"
|
|
13
|
+
"$ref": "resource-schema.json#/properties/type"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"type": "array",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import schema from './get-resources-response-data-schema.json';
|
|
2
2
|
import resourceSchema from '../resource-schema.json'
|
|
3
3
|
import { describe, it, expect } from 'vitest'
|
|
4
|
-
import
|
|
4
|
+
import Ajv2020 from 'ajv/dist/2020.js'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
const ajv = new Ajv({
|
|
6
|
+
const ajv = new Ajv2020.default({
|
|
8
7
|
strict: true,
|
|
9
8
|
})
|
|
10
9
|
ajv.addSchema(resourceSchema);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://www.codify.com/plan-request-data-schema.json",
|
|
4
4
|
"title": "Plan Request Schema Data",
|
|
5
|
-
"
|
|
5
|
+
"$ref": "resource-schema.json"
|
|
6
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import schema from './plan-request-data-schema.json';
|
|
2
2
|
import resourceSchema from '../resource-schema.json'
|
|
3
3
|
import { describe, it, expect } from 'vitest'
|
|
4
|
-
import
|
|
4
|
+
import Ajv2020 from 'ajv/dist/2020.js'
|
|
5
5
|
|
|
6
|
-
const ajv = new
|
|
6
|
+
const ajv = new Ajv2020.default({
|
|
7
7
|
strict: true,
|
|
8
8
|
})
|
|
9
9
|
ajv.addSchema(resourceSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://www.codify.com/validate-request-data-schema.json",
|
|
4
4
|
"title": "Validate Request Schema Data",
|
|
5
5
|
"type": "object",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"configs": {
|
|
8
8
|
"type": "array",
|
|
9
9
|
"items": {
|
|
10
|
-
"
|
|
10
|
+
"$ref": "resource-schema.json"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
},
|
package/src/project-schema.json
CHANGED
package/src/resource-schema.json
CHANGED