@squiz/dx-json-schema-lib 1.2.13-alpha.1 → 1.2.13-alpha.3
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/CHANGELOG.md +8 -0
- package/jest.config.ts +7 -0
- package/lib/JsonValidationService.d.ts +4 -6
- package/lib/JsonValidationService.js +90 -28
- package/lib/JsonValidationService.js.map +1 -1
- package/lib/JsonValidationService.spec.js +276 -65
- package/lib/JsonValidationService.spec.js.map +1 -1
- package/lib/errors/SchemaValidationError.d.ts +1 -1
- package/lib/errors/SchemaValidationError.js +8 -1
- package/lib/errors/SchemaValidationError.js.map +1 -1
- package/lib/formatted-text/v1/formattedText.d.ts +18 -16
- package/lib/formatted-text/v1/formattedText.json +59 -88
- package/lib/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.d.ts +8 -0
- package/lib/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.js +21 -0
- package/lib/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.js.map +1 -0
- package/lib/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.spec.d.ts +1 -0
- package/lib/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.spec.js +52 -0
- package/lib/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.spec.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/manifest/v1/Draft-07.json +155 -0
- package/lib/manifest/v1/DxComponentInputSchema.json +11 -8
- package/lib/manifest/v1/DxComponentInputSchema.spec.js +23 -9
- package/lib/manifest/v1/DxComponentInputSchema.spec.js.map +1 -1
- package/lib/manifest/v1/__test__/schemas/badFunctionInputComponent.json +2 -1
- package/lib/manifest/v1/__test__/schemas/badNestedFunctionInput.json +2 -1
- package/lib/manifest/v1/__test__/schemas/nonObjectFunctionInputComponent.json +2 -1
- package/lib/manifest/v1/__test__/schemas/validComponentJson.json +48 -0
- package/lib/manifest/v1/v1.d.ts +5 -7
- package/lib/manifest/v1/v1.spec.js +22 -3
- package/lib/manifest/v1/v1.spec.js.map +1 -1
- package/package.json +4 -3
- package/src/JsonValidationService.spec.ts +379 -70
- package/src/JsonValidationService.ts +112 -34
- package/src/errors/SchemaValidationError.ts +10 -2
- package/src/formatted-text/v1/formattedText.json +65 -89
- package/src/formatted-text/v1/formattedText.ts +19 -17
- package/src/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.spec.ts +58 -0
- package/src/formatted-text/v1/higherOrderFormattedTextToBaseFormattedText.ts +36 -0
- package/src/index.ts +1 -0
- package/src/manifest/v1/Draft-07.json +155 -0
- package/src/manifest/v1/DxComponentInputSchema.json +11 -8
- package/src/manifest/v1/DxComponentInputSchema.spec.ts +63 -35
- package/src/manifest/v1/__test__/schemas/badFunctionInputComponent.json +2 -1
- package/src/manifest/v1/__test__/schemas/badNestedFunctionInput.json +2 -1
- package/src/manifest/v1/__test__/schemas/nonObjectFunctionInputComponent.json +2 -1
- package/src/manifest/v1/__test__/schemas/validComponentJson.json +48 -0
- package/src/manifest/v1/v1.spec.ts +37 -3
- package/src/manifest/v1/v1.ts +5 -7
- package/tsconfig.json +3 -1
- package/tsconfig.tsbuildinfo +1 -1
@@ -1,6 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const SchemaValidationError_1 = require("../../errors/SchemaValidationError");
|
3
4
|
const JsonValidationService_1 = require("../../JsonValidationService");
|
5
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
6
|
+
function expectToThrowErrorMatchingTypeAndMessage(received, errorType, message) {
|
7
|
+
let error = null;
|
8
|
+
try {
|
9
|
+
received();
|
10
|
+
}
|
11
|
+
catch (e) {
|
12
|
+
error = e;
|
13
|
+
}
|
14
|
+
expect(error).toBeDefined();
|
15
|
+
expect(error === null || error === void 0 ? void 0 : error.message).toEqual(message);
|
16
|
+
expect(error).toBeInstanceOf(errorType);
|
17
|
+
}
|
4
18
|
describe('DxComponentInputSchema', () => {
|
5
19
|
let jsonValidationService;
|
6
20
|
beforeAll(() => {
|
@@ -9,14 +23,14 @@ describe('DxComponentInputSchema', () => {
|
|
9
23
|
it('should allow empty object', () => {
|
10
24
|
expect(() => jsonValidationService.validateContentSchema({})).not.toThrowError();
|
11
25
|
});
|
12
|
-
it('should require required if properties is specified', () => {
|
13
|
-
|
26
|
+
it('should require "required" if properties is specified', () => {
|
27
|
+
expectToThrowErrorMatchingTypeAndMessage(() => jsonValidationService.validateContentSchema({
|
14
28
|
properties: {
|
15
29
|
foo: {
|
16
30
|
type: 'string',
|
17
31
|
},
|
18
32
|
},
|
19
|
-
})
|
33
|
+
}), SchemaValidationError_1.SchemaValidationError, 'failed validation: The required property `required` is missing at `#`');
|
20
34
|
});
|
21
35
|
it('should pass if required and properties are specified', () => {
|
22
36
|
expect(() => jsonValidationService.validateContentSchema({
|
@@ -29,9 +43,9 @@ describe('DxComponentInputSchema', () => {
|
|
29
43
|
})).not.toThrowError();
|
30
44
|
});
|
31
45
|
it('should error if type is not "object"', () => {
|
32
|
-
|
46
|
+
expectToThrowErrorMatchingTypeAndMessage(() => jsonValidationService.validateContentSchema({
|
33
47
|
type: 'string',
|
34
|
-
})
|
48
|
+
}), SchemaValidationError_1.SchemaValidationError, 'failed validation: Expected value at `#/type` to be `object`, but value given is `string`');
|
35
49
|
});
|
36
50
|
it('should allow a nested type to be "FormattedText"', () => {
|
37
51
|
expect(() => jsonValidationService.validateContentSchema({
|
@@ -45,10 +59,10 @@ describe('DxComponentInputSchema', () => {
|
|
45
59
|
})).not.toThrowError();
|
46
60
|
});
|
47
61
|
it('should error on unknown keywords', () => {
|
48
|
-
|
62
|
+
expectToThrowErrorMatchingTypeAndMessage(() => jsonValidationService.validateContentSchema({
|
49
63
|
type: 'object',
|
50
64
|
foo: 'bar',
|
51
|
-
})
|
65
|
+
}), SchemaValidationError_1.SchemaValidationError, 'failed validation: Additional property `foo` in `#` is not allowed');
|
52
66
|
});
|
53
67
|
it('should allow a nested property to be an array of of objects which have a property of type to be "FormattedText" that is required', () => {
|
54
68
|
expect(() => jsonValidationService.validateContentSchema({
|
@@ -71,7 +85,7 @@ describe('DxComponentInputSchema', () => {
|
|
71
85
|
})).not.toThrowError();
|
72
86
|
});
|
73
87
|
it('should error if any nested object does not have a required property', () => {
|
74
|
-
|
88
|
+
expectToThrowErrorMatchingTypeAndMessage(() => jsonValidationService.validateContentSchema({
|
75
89
|
type: 'object',
|
76
90
|
properties: {
|
77
91
|
foo: {
|
@@ -87,7 +101,7 @@ describe('DxComponentInputSchema', () => {
|
|
87
101
|
},
|
88
102
|
},
|
89
103
|
required: ['foo'],
|
90
|
-
})
|
104
|
+
}), SchemaValidationError_1.SchemaValidationError, 'failed validation: Object at `#/properties/foo/items` does not match any schema');
|
91
105
|
});
|
92
106
|
it('should succeed if required is on every nested object', () => {
|
93
107
|
expect(() => jsonValidationService.validateContentSchema({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DxComponentInputSchema.spec.js","sourceRoot":"","sources":["../../../src/manifest/v1/DxComponentInputSchema.spec.ts"],"names":[],"mappings":";;AAAA,uEAAoE;AAEpE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,IAAI,qBAA4C,CAAC;IACjD,SAAS,CAAC,GAAG,EAAE;QACb,qBAAqB,GAAG,IAAI,6CAAqB,EAAE,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;IACnF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,
|
1
|
+
{"version":3,"file":"DxComponentInputSchema.spec.js","sourceRoot":"","sources":["../../../src/manifest/v1/DxComponentInputSchema.spec.ts"],"names":[],"mappings":";;AAAA,8EAA2E;A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"test",
|
6
|
+
"namespace": "other",
|
7
|
+
"mainFunction": "main",
|
8
|
+
"version": "1.0.4",
|
9
|
+
"environment": [],
|
10
|
+
"functions": [
|
11
|
+
{
|
12
|
+
"entry": "main.js",
|
13
|
+
"name": "main",
|
14
|
+
"output": {
|
15
|
+
"responseType": "json",
|
16
|
+
"definition": {
|
17
|
+
"type": "object",
|
18
|
+
"properties": {
|
19
|
+
"prop": {
|
20
|
+
"type": "array"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"input": {
|
26
|
+
"type": "object",
|
27
|
+
"properties": {
|
28
|
+
"textValue": {
|
29
|
+
"type": "FormattedText"
|
30
|
+
},
|
31
|
+
"anotherValue": {
|
32
|
+
"type": "object",
|
33
|
+
"properties": {
|
34
|
+
"xt": {
|
35
|
+
"type": "FormattedText"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"required": [],
|
39
|
+
"additionalProperties": {
|
40
|
+
"type": "FormattedText"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"required": []
|
45
|
+
}
|
46
|
+
}
|
47
|
+
]
|
48
|
+
}
|
package/lib/manifest/v1/v1.d.ts
CHANGED
@@ -6,8 +6,11 @@
|
|
6
6
|
/**
|
7
7
|
* Input schema for a DxComponent
|
8
8
|
*/
|
9
|
-
export type DxComponentInputSchema =
|
10
|
-
|
9
|
+
export type DxComponentInputSchema = CoreSchemaMetaSchema & {
|
10
|
+
type?: 'object';
|
11
|
+
additionalProperties?: boolean;
|
12
|
+
[k: string]: unknown;
|
13
|
+
};
|
11
14
|
export type CoreSchemaMetaSchema = CoreSchemaMetaSchema1 & CoreSchemaMetaSchema2;
|
12
15
|
export type CoreSchemaMetaSchema2 = {
|
13
16
|
$id?: string;
|
@@ -288,11 +291,6 @@ export interface CoreSchemaMetaSchema1 {
|
|
288
291
|
oneOf?: SchemaArray;
|
289
292
|
not?: CoreSchemaMetaSchema2;
|
290
293
|
}
|
291
|
-
export interface DxComponentInputSchema2 {
|
292
|
-
type?: 'object';
|
293
|
-
additionalProperties?: boolean;
|
294
|
-
[k: string]: unknown;
|
295
|
-
}
|
296
294
|
/**
|
297
295
|
* The HtmlResponse type is for returning html content. The response out of the function must be a string. This response object also includes references to resources (staticFiles) the component needs to execute correctly. It is up to the integrating system to respect this.
|
298
296
|
*/
|
@@ -10,6 +10,19 @@ async function fetchTestManifest(filename) {
|
|
10
10
|
});
|
11
11
|
return JSON.parse(contents);
|
12
12
|
}
|
13
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
14
|
+
function expectToThrowErrorMatchingTypeAndMessage(received, errorType, message) {
|
15
|
+
let error = null;
|
16
|
+
try {
|
17
|
+
received();
|
18
|
+
}
|
19
|
+
catch (e) {
|
20
|
+
error = e;
|
21
|
+
}
|
22
|
+
expect(error).toBeDefined();
|
23
|
+
expect(error === null || error === void 0 ? void 0 : error.message).toEqual(message);
|
24
|
+
expect(error).toBeInstanceOf(errorType);
|
25
|
+
}
|
13
26
|
describe('manifest/v1', () => {
|
14
27
|
let validationService;
|
15
28
|
beforeAll(() => {
|
@@ -21,15 +34,21 @@ describe('manifest/v1', () => {
|
|
21
34
|
});
|
22
35
|
it('errors on invalid property types in function input', async () => {
|
23
36
|
const manifest = await fetchTestManifest('badFunctionInputComponent.json');
|
24
|
-
|
37
|
+
expectToThrowErrorMatchingTypeAndMessage(() => {
|
38
|
+
validationService.validateManifest(manifest, 'v1');
|
39
|
+
}, SchemaValidationError_1.SchemaValidationError, 'failed validation: Value `badInputType` at `#/functions/0/input/properties/textValue/type` does not match any schema');
|
25
40
|
});
|
26
41
|
it('errors on invalid property types in nested function input', async () => {
|
27
42
|
const manifest = await fetchTestManifest('badNestedFunctionInput.json');
|
28
|
-
|
43
|
+
expectToThrowErrorMatchingTypeAndMessage(() => {
|
44
|
+
validationService.validateManifest(manifest, 'v1');
|
45
|
+
}, SchemaValidationError_1.SchemaValidationError, 'failed validation: Value `astd` at `#/functions/0/input/properties/anotherValue/properties/xt/type` does not match any schema');
|
29
46
|
});
|
30
47
|
it('errors on non-object top level input', async () => {
|
31
48
|
const manifest = await fetchTestManifest('nonObjectFunctionInputComponent.json');
|
32
|
-
|
49
|
+
expectToThrowErrorMatchingTypeAndMessage(() => {
|
50
|
+
validationService.validateManifest(manifest, 'v1');
|
51
|
+
}, SchemaValidationError_1.SchemaValidationError, 'failed validation: Expected value at `#/functions/0/input/type` to be `object`, but value given is `string`');
|
33
52
|
});
|
34
53
|
});
|
35
54
|
//# sourceMappingURL=v1.spec.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"v1.spec.js","sourceRoot":"","sources":["../../../src/manifest/v1/v1.spec.ts"],"names":[],"mappings":";;AAAA,0CAAuC;AACvC,+BAA+B;AAC/B,8EAA2E;AAC3E,uEAAoE;AAEpE,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IAC/C,MAAM,QAAQ,GAAG,MAAM,IAAA,mBAAQ,EAAC,IAAA,cAAO,EAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE;QACnF,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAED,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,IAAI,iBAAwC,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,iBAAiB,GAAG,IAAI,6CAAqB,EAAE,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;QAChE,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAA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6
|
"scripts": {
|
@@ -30,7 +30,8 @@
|
|
30
30
|
"dependencies": {
|
31
31
|
"ajv": "8.11.2",
|
32
32
|
"ajv-formats": "2.1.1",
|
33
|
-
"better-ajv-errors": "1.2.0"
|
33
|
+
"better-ajv-errors": "1.2.0",
|
34
|
+
"json-schema-library": "7.4.4"
|
34
35
|
},
|
35
|
-
"gitHead": "
|
36
|
+
"gitHead": "3dd615783e524f49f043b8e8f36fe1bed946e555"
|
36
37
|
}
|