codify-schemas 1.0.18 → 1.0.20

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.
Files changed (31) hide show
  1. package/dist/config-file-schema.json +2 -2
  2. package/dist/index.d.ts +3 -9
  3. package/dist/ipc-message-schema.json +1 -1
  4. package/dist/messages/apply-request-data-schema.json +1 -1
  5. package/dist/messages/apply-response-data-schema.json +1 -1
  6. package/dist/messages/error-response-data-schema.json +1 -1
  7. package/dist/messages/plan-request-data-schema.json +2 -2
  8. package/dist/messages/plan-response-data-schema.json +1 -1
  9. package/dist/messages/validate-request-data-schema.json +2 -2
  10. package/dist/messages/validate-response-data-schema.json +1 -1
  11. package/dist/project-schema.json +1 -1
  12. package/dist/resource-schema.json +1 -1
  13. package/package.json +1 -1
  14. package/src/config-file-schema.json +2 -2
  15. package/src/config-file-schema.test.ts +2 -2
  16. package/src/ipc-message-schema.json +1 -1
  17. package/src/ipc-message-schema.test.ts +2 -2
  18. package/src/messages/apply-request-data-schema.json +1 -1
  19. package/src/messages/apply-response-data-schema.json +1 -1
  20. package/src/messages/error-response-data-schema.json +1 -1
  21. package/src/messages/get-resources-response-data-schema.json +2 -2
  22. package/src/messages/get-resources-response-data-schema.test.ts +2 -3
  23. package/src/messages/plan-request-data-schema.json +2 -2
  24. package/src/messages/plan-request-data-schema.test.ts +2 -2
  25. package/src/messages/plan-response-data-schema.json +1 -1
  26. package/src/messages/validate-request-data-schema.json +2 -2
  27. package/src/messages/validate-response-data-schema.json +1 -1
  28. package/src/project-schema.json +1 -1
  29. package/src/project-schema.test.ts +2 -2
  30. package/src/resource-schema.json +1 -1
  31. package/src/resource-schema.test.ts +2 -2
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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
- "allOf": [{ "$ref": "resource-schema.json" }]
7
+ "$ref": "resource-schema.json"
8
8
  }
9
9
  }
package/dist/index.d.ts CHANGED
@@ -5,9 +5,7 @@ declare const ConfigFileSchema: {
5
5
  title: string;
6
6
  type: string;
7
7
  items: {
8
- allOf: {
9
- $ref: string;
10
- }[];
8
+ $ref: string;
11
9
  };
12
10
  };
13
11
  };
@@ -143,9 +141,7 @@ declare const PlanRequestDataSchema: {
143
141
  $schema: string;
144
142
  $id: string;
145
143
  title: string;
146
- allOf: {
147
- $ref: string;
148
- }[];
144
+ $ref: string;
149
145
  };
150
146
  };
151
147
  declare const PlanResponseDataSchema: {
@@ -213,9 +209,7 @@ declare const ValidateRequestDataSchema: {
213
209
  configs: {
214
210
  type: string;
215
211
  items: {
216
- allOf: {
217
- $ref: string;
218
- }[];
212
+ $ref: string;
219
213
  };
220
214
  };
221
215
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/ipc-message-schema.json",
4
4
  "title": "IPC Message Schema",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/apply-response-data-schema.json",
4
4
  "title": "Apply Response Schema Data",
5
5
  "type": "null"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/error-response-data-schema.json",
4
4
  "title": "Error Response Schema Data",
5
5
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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
- "allOf": [{ "$ref": "resource-schema.json" }]
5
+ "$ref": "resource-schema.json"
6
6
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/plan-response-data-schema.json",
4
4
  "title": "Plan Response Schema Data",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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
- "allOf": [{ "$ref": "resource-schema.json" }]
10
+ "$ref": "resource-schema.json"
11
11
  }
12
12
  }
13
13
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/validate-response-data-schema.json",
4
4
  "title": "Validate Response Schema Data",
5
5
  "type": "null"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/resource-schema.json",
4
4
  "title": "Resource Schema",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/resource-schema.json",
4
4
  "title": "Resource Schema",
5
5
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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
- "allOf": [ { "$ref": "resource-schema.json" } ]
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 Ajv from "ajv";
4
+ import Ajv2020 from 'ajv/dist/2020.js'
5
5
 
6
- const ajv = new Ajv({
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": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/ipc-message-schema.json",
4
4
  "title": "IPC Message Schema",
5
5
  "type": "object",
@@ -1,8 +1,8 @@
1
1
  import schema from './ipc-message-schema.json';
2
2
  import { describe, it, expect } from 'vitest'
3
- import Ajv from "ajv";
3
+ import Ajv2020 from 'ajv/dist/2020.js'
4
4
 
5
- const ajv = new Ajv({
5
+ const ajv = new Ajv2020.default({
6
6
  strict: true,
7
7
  })
8
8
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/apply-response-data-schema.json",
4
4
  "title": "Apply Response Schema Data",
5
5
  "type": "null"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/error-response-data-schema.json",
4
4
  "title": "Error Response Schema Data",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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
- "allOf": [ { "$ref": "resource-schema.json#/properties/type" } ]
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 Ajv from "ajv";
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": "http://json-schema.org/draft-07/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
- "allOf": [ { "$ref": "resource-schema.json" } ]
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 Ajv from "ajv";
4
+ import Ajv2020 from 'ajv/dist/2020.js'
5
5
 
6
- const ajv = new Ajv({
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": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/plan-response-data-schema.json",
4
4
  "title": "Plan Response Schema Data",
5
5
  "type": "object",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/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
- "allOf": [ { "$ref": "resource-schema.json" } ]
10
+ "$ref": "resource-schema.json"
11
11
  }
12
12
  }
13
13
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/validate-response-data-schema.json",
4
4
  "title": "Validate Response Schema Data",
5
5
  "type": "null"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/resource-schema.json",
4
4
  "title": "Resource Schema",
5
5
  "type": "object",
@@ -1,8 +1,8 @@
1
1
  import schema from './project-schema.json';
2
2
  import { describe, it, expect } from 'vitest'
3
- import Ajv from "ajv";
3
+ import Ajv2020 from 'ajv/dist/2020.js'
4
4
 
5
- const ajv = new Ajv({
5
+ const ajv = new Ajv2020.default({
6
6
  strict: true,
7
7
  })
8
8
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://www.codify.com/resource-schema.json",
4
4
  "title": "Resource Schema",
5
5
  "type": "object",
@@ -1,8 +1,8 @@
1
1
  import schema from './resource-schema.json';
2
2
  import { describe, it, expect } from 'vitest'
3
- import Ajv from "ajv";
3
+ import Ajv2020 from 'ajv/dist/2020.js'
4
4
 
5
- const ajv = new Ajv({
5
+ const ajv = new Ajv2020.default({
6
6
  strict: true,
7
7
  })
8
8