@lionweb/validation 0.7.0-beta.9 → 0.7.0
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 +6 -1
- package/package.json +37 -37
- package/src/issues/ValidationIssue.ts +4 -4
- package/src/validators/LionWebChunkDefinitions.ts +1 -1
- package/src/validators/LionWebLanguageReferenceValidator.ts +3 -3
- package/src/validators/LionWebLanguageValidator.ts +2 -1
- package/src/validators/ValidationFunctions.ts +4 -10
- package/src/validators/generic/SyntaxValidator.ts +1 -54
- package/src/validators/generic/schema/DefinitionSchema.ts +13 -45
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
- package/dist/issues/LanguageIssues.d.ts +0 -99
- package/dist/issues/LanguageIssues.d.ts.map +0 -1
- package/dist/issues/LanguageIssues.js +0 -146
- package/dist/issues/LanguageIssues.js.map +0 -1
- package/dist/issues/ReferenceIssues.d.ts +0 -43
- package/dist/issues/ReferenceIssues.d.ts.map +0 -1
- package/dist/issues/ReferenceIssues.js +0 -53
- package/dist/issues/ReferenceIssues.js.map +0 -1
- package/dist/issues/SyntaxIssues.d.ts +0 -53
- package/dist/issues/SyntaxIssues.d.ts.map +0 -1
- package/dist/issues/SyntaxIssues.js +0 -81
- package/dist/issues/SyntaxIssues.js.map +0 -1
- package/dist/issues/ValidationIssue.d.ts +0 -15
- package/dist/issues/ValidationIssue.d.ts.map +0 -1
- package/dist/issues/ValidationIssue.js +0 -17
- package/dist/issues/ValidationIssue.js.map +0 -1
- package/dist/issues/index.d.ts +0 -5
- package/dist/issues/index.d.ts.map +0 -1
- package/dist/issues/index.js +0 -5
- package/dist/issues/index.js.map +0 -1
- package/dist/languages/CompositeLionWebLanguageWrapper.d.ts +0 -24
- package/dist/languages/CompositeLionWebLanguageWrapper.d.ts.map +0 -1
- package/dist/languages/CompositeLionWebLanguageWrapper.js +0 -56
- package/dist/languages/CompositeLionWebLanguageWrapper.js.map +0 -1
- package/dist/languages/LanguageRegistry.d.ts +0 -19
- package/dist/languages/LanguageRegistry.d.ts.map +0 -1
- package/dist/languages/LanguageRegistry.js +0 -37
- package/dist/languages/LanguageRegistry.js.map +0 -1
- package/dist/languages/LanguageUtils.d.ts +0 -35
- package/dist/languages/LanguageUtils.d.ts.map +0 -1
- package/dist/languages/LanguageUtils.js +0 -54
- package/dist/languages/LanguageUtils.js.map +0 -1
- package/dist/languages/LionCore-M3.json +0 -2356
- package/dist/languages/LionCore-builtins.json +0 -372
- package/dist/languages/LionWebLanguageWrapper.d.ts +0 -31
- package/dist/languages/LionWebLanguageWrapper.d.ts.map +0 -1
- package/dist/languages/LionWebLanguageWrapper.js +0 -69
- package/dist/languages/LionWebLanguageWrapper.js.map +0 -1
- package/dist/languages/MetaPointerMap.d.ts +0 -11
- package/dist/languages/MetaPointerMap.d.ts.map +0 -1
- package/dist/languages/MetaPointerMap.js +0 -39
- package/dist/languages/MetaPointerMap.js.map +0 -1
- package/dist/languages/index.d.ts +0 -3
- package/dist/languages/index.d.ts.map +0 -1
- package/dist/languages/index.js +0 -3
- package/dist/languages/index.js.map +0 -1
- package/dist/runners/FileUtils.d.ts +0 -6
- package/dist/runners/FileUtils.d.ts.map +0 -1
- package/dist/runners/FileUtils.js +0 -53
- package/dist/runners/FileUtils.js.map +0 -1
- package/dist/runners/RunCheckFolder.d.ts +0 -2
- package/dist/runners/RunCheckFolder.d.ts.map +0 -1
- package/dist/runners/RunCheckFolder.js +0 -6
- package/dist/runners/RunCheckFolder.js.map +0 -1
- package/dist/runners/RunCheckFolderWithLanguage.d.ts +0 -2
- package/dist/runners/RunCheckFolderWithLanguage.d.ts.map +0 -1
- package/dist/runners/RunCheckFolderWithLanguage.js +0 -40
- package/dist/runners/RunCheckFolderWithLanguage.js.map +0 -1
- package/dist/runners/RunCheckOneFile.d.ts +0 -2
- package/dist/runners/RunCheckOneFile.d.ts.map +0 -1
- package/dist/runners/RunCheckOneFile.js +0 -6
- package/dist/runners/RunCheckOneFile.js.map +0 -1
- package/dist/runners/RunCheckOneFileWithLanguage.d.ts +0 -2
- package/dist/runners/RunCheckOneFileWithLanguage.d.ts.map +0 -1
- package/dist/runners/RunCheckOneFileWithLanguage.js +0 -31
- package/dist/runners/RunCheckOneFileWithLanguage.js.map +0 -1
- package/dist/runners/RunLioncoreDiff.d.ts +0 -2
- package/dist/runners/RunLioncoreDiff.d.ts.map +0 -1
- package/dist/runners/RunLioncoreDiff.js +0 -22
- package/dist/runners/RunLioncoreDiff.js.map +0 -1
- package/dist/runners/Utils.d.ts +0 -7
- package/dist/runners/Utils.d.ts.map +0 -1
- package/dist/runners/Utils.js +0 -48
- package/dist/runners/Utils.js.map +0 -1
- package/dist/runners/index.d.ts +0 -3
- package/dist/runners/index.d.ts.map +0 -1
- package/dist/runners/index.js +0 -3
- package/dist/runners/index.js.map +0 -1
- package/dist/validators/LionWebChunkDefinitions.d.ts +0 -9
- package/dist/validators/LionWebChunkDefinitions.d.ts.map +0 -1
- package/dist/validators/LionWebChunkDefinitions.js +0 -100
- package/dist/validators/LionWebChunkDefinitions.js.map +0 -1
- package/dist/validators/LionWebLanguageReferenceValidator.d.ts +0 -21
- package/dist/validators/LionWebLanguageReferenceValidator.d.ts.map +0 -1
- package/dist/validators/LionWebLanguageReferenceValidator.js +0 -166
- package/dist/validators/LionWebLanguageReferenceValidator.js.map +0 -1
- package/dist/validators/LionWebLanguageValidator.d.ts +0 -23
- package/dist/validators/LionWebLanguageValidator.d.ts.map +0 -1
- package/dist/validators/LionWebLanguageValidator.js +0 -66
- package/dist/validators/LionWebLanguageValidator.js.map +0 -1
- package/dist/validators/LionWebReferenceValidator.d.ts +0 -43
- package/dist/validators/LionWebReferenceValidator.d.ts.map +0 -1
- package/dist/validators/LionWebReferenceValidator.js +0 -203
- package/dist/validators/LionWebReferenceValidator.js.map +0 -1
- package/dist/validators/LionWebSyntaxValidator.d.ts +0 -9
- package/dist/validators/LionWebSyntaxValidator.d.ts.map +0 -1
- package/dist/validators/LionWebSyntaxValidator.js +0 -11
- package/dist/validators/LionWebSyntaxValidator.js.map +0 -1
- package/dist/validators/LionWebValidator.d.ts +0 -24
- package/dist/validators/LionWebValidator.d.ts.map +0 -1
- package/dist/validators/LionWebValidator.js +0 -55
- package/dist/validators/LionWebValidator.js.map +0 -1
- package/dist/validators/ValidationFunctions.d.ts +0 -60
- package/dist/validators/ValidationFunctions.d.ts.map +0 -1
- package/dist/validators/ValidationFunctions.js +0 -110
- package/dist/validators/ValidationFunctions.js.map +0 -1
- package/dist/validators/generic/SyntaxValidator.d.ts +0 -51
- package/dist/validators/generic/SyntaxValidator.d.ts.map +0 -1
- package/dist/validators/generic/SyntaxValidator.js +0 -201
- package/dist/validators/generic/SyntaxValidator.js.map +0 -1
- package/dist/validators/generic/ValidationResult.d.ts +0 -8
- package/dist/validators/generic/ValidationResult.d.ts.map +0 -1
- package/dist/validators/generic/ValidationResult.js +0 -15
- package/dist/validators/generic/ValidationResult.js.map +0 -1
- package/dist/validators/generic/index.d.ts +0 -4
- package/dist/validators/generic/index.d.ts.map +0 -1
- package/dist/validators/generic/index.js +0 -4
- package/dist/validators/generic/index.js.map +0 -1
- package/dist/validators/generic/schema/DefinitionSchema.d.ts +0 -26
- package/dist/validators/generic/schema/DefinitionSchema.d.ts.map +0 -1
- package/dist/validators/generic/schema/DefinitionSchema.js +0 -75
- package/dist/validators/generic/schema/DefinitionSchema.js.map +0 -1
- package/dist/validators/generic/schema/ValidationTypes.d.ts +0 -101
- package/dist/validators/generic/schema/ValidationTypes.d.ts.map +0 -1
- package/dist/validators/generic/schema/ValidationTypes.js +0 -43
- package/dist/validators/generic/schema/ValidationTypes.js.map +0 -1
- package/dist/validators/generic/schema/index.d.ts +0 -3
- package/dist/validators/generic/schema/index.d.ts.map +0 -1
- package/dist/validators/generic/schema/index.js +0 -3
- package/dist/validators/generic/schema/index.js.map +0 -1
- package/dist/validators/index.d.ts +0 -9
- package/dist/validators/index.d.ts.map +0 -1
- package/dist/validators/index.js +0 -9
- package/dist/validators/index.js.map +0 -1
- package/tsconfig.json +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
* Refactor validation schema to enable generation ot TypeScript types with discriminator.
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
## 0.6.3
|
|
4
9
|
|
|
5
|
-
*
|
|
10
|
+
* Make validation aware that the `value` field of a property serialization is allowed to be `null`.
|
|
6
11
|
|
|
7
12
|
|
|
8
13
|
## 0.6.2
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
2
|
+
"name": "@lionweb/validation",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"license": "Apache 2.0",
|
|
5
|
+
"description": "LionWeb Serialization validation",
|
|
6
|
+
"author": "jos.warmer@openmodeling.nl",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"typings": "dist/index.d.ts",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"lionweb",
|
|
13
|
+
"serialization",
|
|
14
|
+
"testing"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"clean": "npx rimraf dist node_modules -g lionweb-validation-*.tgz",
|
|
18
|
+
"build": "tsc && npm run copyM3 && npm run copyBuiltins",
|
|
19
|
+
"copyM3": "node -e \"const fs = require('fs'); fs.copyFileSync('./src/languages/LionCore-M3.json', './dist/languages/LionCore-M3.json');\"",
|
|
20
|
+
"copyBuiltins": "node -e \"const fs = require('fs'); fs.copyFileSync('./src/languages/LionCore-builtins.json', './dist/languages/LionCore-builtins.json');\"",
|
|
21
|
+
"lint": "eslint src",
|
|
22
|
+
"test-here": "cd ../test && find dist/validation -type d | sed '1!G;h;$!d' | xargs npx mocha",
|
|
23
|
+
"release-alpha": "npm publish --registry https://registry.npmjs.org --tag alpha",
|
|
24
|
+
"release-beta": "npm publish --registry https://registry.npmjs.org --tag beta",
|
|
25
|
+
"release": "npm publish --registry https://registry.npmjs.org",
|
|
26
|
+
"testValid": "node dist/runners/RunCheckFolder.js ../test/testset/valid",
|
|
27
|
+
"testInvalid": "node dist/runners/RunCheckFolder.js ../test/testset/invalid",
|
|
28
|
+
"testInvalidWithLanguage": "node dist/runners/RunCheckFolderWithLanguage.js ../test/testset/withLanguage/invalid/ ../test/testset/withLanguage/myLang.language.json",
|
|
29
|
+
"testValidWithLanguage": "node dist/runners/RunCheckFolderWithLanguage.js ../test/testset/withLanguage/valid/ ../test/testset/withLanguage/myLang.language.json",
|
|
30
|
+
"publish-local": "npm publish --registry http://localhost:4873",
|
|
31
|
+
"unpublish-local": "npm unpublish --force --registry http://localhost:4873",
|
|
32
|
+
"republish-local": "yarn unpublish-local && yarn publish-local"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@lionweb/json": "0.7.0",
|
|
36
|
+
"@lionweb/ts-utils": "0.7.0",
|
|
37
|
+
"@lionweb/json-utils": "0.7.0"
|
|
38
|
+
}
|
|
39
39
|
}
|
|
@@ -2,16 +2,16 @@ import { JsonContext } from "@lionweb/json-utils"
|
|
|
2
2
|
|
|
3
3
|
export abstract class ValidationIssue {
|
|
4
4
|
abstract readonly issueType: string
|
|
5
|
-
context: JsonContext
|
|
5
|
+
context: JsonContext | null
|
|
6
6
|
|
|
7
|
-
constructor(context: JsonContext) {
|
|
7
|
+
constructor(context: JsonContext | null) {
|
|
8
8
|
this.context = context
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
protected abstract msg(): string
|
|
12
12
|
|
|
13
13
|
public errorMsg(): string {
|
|
14
|
-
return `${this.issueType}: ${this.msg()} at ${this.context
|
|
14
|
+
return `${this.issueType}: ${this.msg()} at ${this.context?.toString()} `
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ export class GenericIssue extends ValidationIssue {
|
|
|
19
19
|
readonly issueType = "GenericIssue"
|
|
20
20
|
|
|
21
21
|
constructor(
|
|
22
|
-
context: JsonContext,
|
|
22
|
+
context: JsonContext | null,
|
|
23
23
|
public text: string
|
|
24
24
|
) {
|
|
25
25
|
super(context)
|
|
@@ -7,7 +7,7 @@ import { validateId, validateKey, validateSerializationFormatVersion, validateVe
|
|
|
7
7
|
* - be used by the SyntaxValidator to validate an object sat runtime.
|
|
8
8
|
* - used to generate all the TypeScript types for a LionWebChunk.
|
|
9
9
|
*/
|
|
10
|
-
export const LionWebSchema: DefinitionSchema = new DefinitionSchema([
|
|
10
|
+
export const LionWebSchema: DefinitionSchema = new DefinitionSchema([
|
|
11
11
|
{
|
|
12
12
|
name: "LionWebJsonMetaPointer",
|
|
13
13
|
properties: [
|
|
@@ -66,7 +66,7 @@ export class LionWebLanguageReferenceValidator {
|
|
|
66
66
|
})
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
private validateContainment(
|
|
69
|
+
private validateContainment(_node: LionWebJsonNode, nodeConcept: LionWebJsonNode | undefined, containment: LionWebJsonContainment, context: JsonContext) {
|
|
70
70
|
const metaConcept = this.registry.getNodeByMetaPointer(containment.containment)
|
|
71
71
|
if (metaConcept === null || metaConcept === undefined) {
|
|
72
72
|
this.validationResult.issue(new Language_UnknownContainment_Issue(context, containment.containment))
|
|
@@ -85,7 +85,7 @@ export class LionWebLanguageReferenceValidator {
|
|
|
85
85
|
// TODO check type of children
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
private validateReference(
|
|
88
|
+
private validateReference(_node: LionWebJsonNode, nodeConcept: LionWebJsonNode | undefined, ref: LionWebJsonReference, context: JsonContext) {
|
|
89
89
|
const referenceDefinition = this.registry.getNodeByMetaPointer(ref.reference)
|
|
90
90
|
if (referenceDefinition === null || referenceDefinition === undefined) {
|
|
91
91
|
this.validationResult.issue(new Language_UnknownReference_Issue(context, ref.reference))
|
|
@@ -113,7 +113,7 @@ export class LionWebLanguageReferenceValidator {
|
|
|
113
113
|
* Checks wwhether the value of `prop1` is correct in relation with its property definition in the referred language.
|
|
114
114
|
* @param prop
|
|
115
115
|
*/
|
|
116
|
-
validateProperty(
|
|
116
|
+
validateProperty(_node: LionWebJsonNode, nodeConcept: LionWebJsonNode | undefined, prop: LionWebJsonProperty, context: JsonContext): void {
|
|
117
117
|
if (prop.value === null) {
|
|
118
118
|
return
|
|
119
119
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isEqualMetaPointer, LionWebJsonChunk, LionWebJsonNode } from "@lionweb/json"
|
|
2
2
|
import { isLionWebM3Language, JsonContext, LionWebJsonChunkWrapper, MetaPointers } from "@lionweb/json-utils"
|
|
3
|
+
import { asMinimalJsonString } from "@lionweb/ts-utils"
|
|
3
4
|
import { GenericIssue } from "../issues/index.js"
|
|
4
5
|
import { MissingM3Language_Issue } from "../issues/LanguageIssues.js"
|
|
5
6
|
import { isConcept, LanguageRegistry } from "../languages/index.js"
|
|
@@ -33,7 +34,7 @@ export class LionWebLanguageValidator {
|
|
|
33
34
|
const languageNodes = this.chunkWrapper.findNodesOfClassifier(MetaPointers.Language)
|
|
34
35
|
if (languageNodes.length !== 1) {
|
|
35
36
|
// TODO Better error handling.
|
|
36
|
-
console.error("Error: xpected exactly one Language node, found " + languageNodes.length + " => " +
|
|
37
|
+
console.error("Error: xpected exactly one Language node, found " + languageNodes.length + " => " + asMinimalJsonString(languageNodes))
|
|
37
38
|
}
|
|
38
39
|
chunk.nodes.forEach((node, index) => {
|
|
39
40
|
if (!isConcept(node)) {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Used in the LionWebSyntaxValidator.
|
|
4
4
|
*/
|
|
5
5
|
import { JsonContext } from "@lionweb/json-utils"
|
|
6
|
+
import { asMinimalJsonString } from "@lionweb/ts-utils"
|
|
6
7
|
import { Language_PropertyValue_Issue } from "../issues/LanguageIssues.js"
|
|
7
8
|
import {
|
|
8
9
|
Syntax_IdFormat_Issue,
|
|
@@ -20,7 +21,6 @@ import { PropertyDefinition } from "./generic/schema/ValidationTypes.js"
|
|
|
20
21
|
* @param result Any validation issues found will be put into this object.
|
|
21
22
|
* @param context The context for the error message in errors.
|
|
22
23
|
*/
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
24
24
|
export function validateId<String>(value: String, result: ValidationResult, context: JsonContext): void {
|
|
25
25
|
const idString: string = "" + value
|
|
26
26
|
const regexp = /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*$/
|
|
@@ -35,7 +35,6 @@ export function validateId<String>(value: String, result: ValidationResult, cont
|
|
|
35
35
|
* @param result Any validation issues found will be put into this object.
|
|
36
36
|
* @param context The context for the error message in errors.
|
|
37
37
|
*/
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
39
38
|
export function validateKey<String>(value: String, result: ValidationResult, context: JsonContext): void {
|
|
40
39
|
const keyString: string = "" + value
|
|
41
40
|
const regexp = /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*$/
|
|
@@ -50,7 +49,6 @@ export function validateKey<String>(value: String, result: ValidationResult, con
|
|
|
50
49
|
* @param result Any validation issues found will be put into this object.
|
|
51
50
|
* @param context The location in the overall JSON.
|
|
52
51
|
*/
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
54
52
|
export function validateVersion<String>(value: String, result: ValidationResult, context: JsonContext): void {
|
|
55
53
|
const versionString: string = "" + value
|
|
56
54
|
if (versionString.length === 0) {
|
|
@@ -65,7 +63,6 @@ export function validateVersion<String>(value: String, result: ValidationResult,
|
|
|
65
63
|
* @param context The location in the overall JSON.
|
|
66
64
|
* @param propDef The PropertyDefinition for this value
|
|
67
65
|
*/
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
69
66
|
export function validateBoolean<String>(value: String, result: ValidationResult, context: JsonContext, propDef?: PropertyDefinition): void {
|
|
70
67
|
const valueAsPrimitive = "" + value
|
|
71
68
|
if (valueAsPrimitive !== "true" && valueAsPrimitive !== "false") {
|
|
@@ -74,7 +71,7 @@ export function validateBoolean<String>(value: String, result: ValidationResult,
|
|
|
74
71
|
context,
|
|
75
72
|
propDef ? propDef.name : "unknown",
|
|
76
73
|
valueAsPrimitive,
|
|
77
|
-
"boolean " +
|
|
74
|
+
"boolean " + asMinimalJsonString(value)
|
|
78
75
|
)
|
|
79
76
|
)
|
|
80
77
|
}
|
|
@@ -87,7 +84,6 @@ export function validateBoolean<String>(value: String, result: ValidationResult,
|
|
|
87
84
|
* @param context The location in the overall JSON.
|
|
88
85
|
* @param propDef The PropertyDefinition for this value
|
|
89
86
|
*/
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
91
87
|
export function validateInteger<String>(value: String, result: ValidationResult, context: JsonContext, propDef?: PropertyDefinition): void {
|
|
92
88
|
const valueAsPrimitive = "" + value
|
|
93
89
|
const regexp = /^[+-]?(0|[1-9][0-9]*)$/
|
|
@@ -103,7 +99,6 @@ export function validateInteger<String>(value: String, result: ValidationResult,
|
|
|
103
99
|
* @param context The location in the overall JSON.
|
|
104
100
|
* @param propDef The PropertyDefinition for this value
|
|
105
101
|
*/
|
|
106
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
107
102
|
export function validateJSON<String>(value: String, result: ValidationResult, context: JsonContext, propDef?: PropertyDefinition): void {
|
|
108
103
|
const valueAsPrimitive = "" + value
|
|
109
104
|
if (value === null) {
|
|
@@ -111,7 +106,7 @@ export function validateJSON<String>(value: String, result: ValidationResult, co
|
|
|
111
106
|
}
|
|
112
107
|
try {
|
|
113
108
|
JSON.parse(valueAsPrimitive)
|
|
114
|
-
} catch (
|
|
109
|
+
} catch (_) {
|
|
115
110
|
result.issue(new Language_PropertyValue_Issue(context, propDef ? propDef.name : "unknown", valueAsPrimitive, "JSON"))
|
|
116
111
|
}
|
|
117
112
|
}
|
|
@@ -122,10 +117,9 @@ export function validateJSON<String>(value: String, result: ValidationResult, co
|
|
|
122
117
|
* @param result
|
|
123
118
|
* @param context
|
|
124
119
|
*/
|
|
125
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
126
120
|
export function validateSerializationFormatVersion<String>(value: String, result: ValidationResult, context: JsonContext): void {
|
|
127
121
|
if (typeof value !== "string") {
|
|
128
|
-
result.issue(new Syntax_SerializationFormatVersion_Issue(context,
|
|
122
|
+
result.issue(new Syntax_SerializationFormatVersion_Issue(context, asMinimalJsonString(value)))
|
|
129
123
|
return
|
|
130
124
|
}
|
|
131
125
|
if (value.length === 0) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JsonContext } from "@lionweb/json-utils"
|
|
2
2
|
import {
|
|
3
|
-
GenericIssue,
|
|
4
3
|
Syntax_ArrayContainsNull_Issue,
|
|
5
4
|
Syntax_PropertyMissingIssue,
|
|
6
5
|
Syntax_PropertyNullIssue,
|
|
@@ -11,7 +10,7 @@ import { ValidationResult } from "./ValidationResult.js"
|
|
|
11
10
|
import {
|
|
12
11
|
isObjectDefinition,
|
|
13
12
|
isPrimitiveDefinition, ObjectDefinition, PrimitiveDefinition, DefinitionSchema,
|
|
14
|
-
UnknownObjectType
|
|
13
|
+
UnknownObjectType
|
|
15
14
|
} from "./schema/index.js"
|
|
16
15
|
|
|
17
16
|
/**
|
|
@@ -63,11 +62,6 @@ export class SyntaxValidator {
|
|
|
63
62
|
return
|
|
64
63
|
}
|
|
65
64
|
for (const propertyDef of typeDef.properties) {
|
|
66
|
-
const taggedUnion = this.schema.getTaggedUnionDefinition(propertyDef.type)
|
|
67
|
-
if (taggedUnion !== undefined) {
|
|
68
|
-
this.validateTaggedUnion(propertyDef, typeDef, object, jsonContext.concat(propertyDef.name))
|
|
69
|
-
continue
|
|
70
|
-
}
|
|
71
65
|
const expectedTypeDef = this.schema.getDefinition(propertyDef.type)
|
|
72
66
|
const validator = propertyDef.validate!
|
|
73
67
|
const propertyValue = object[propertyDef.name]
|
|
@@ -152,53 +146,6 @@ export class SyntaxValidator {
|
|
|
152
146
|
return true
|
|
153
147
|
}
|
|
154
148
|
|
|
155
|
-
/**
|
|
156
|
-
*
|
|
157
|
-
* @param propertyDef the definition of the property that has the TaggedUnionType as its type
|
|
158
|
-
* @param typeDef The object definition containing the `propertyDef`
|
|
159
|
-
* @param object The object of type `typeDef` that should have the property described by `propertyDef`
|
|
160
|
-
* @param jsonContext
|
|
161
|
-
*/
|
|
162
|
-
validateTaggedUnion(
|
|
163
|
-
propertyDef: PropertyDefinition,
|
|
164
|
-
typeDef: ObjectDefinition,
|
|
165
|
-
object: UnknownObjectType,
|
|
166
|
-
jsonContext: JsonContext
|
|
167
|
-
): void {
|
|
168
|
-
// console.log(`validateTaggedUnion ${JSON.stringify(propertyDef)}, typedef ${typeDef.name} object: ${JSON.stringify(object, null, 3)}`)
|
|
169
|
-
const taggedObject = object[propertyDef.name]
|
|
170
|
-
if (propertyDef.isList) {
|
|
171
|
-
if (!Array.isArray(taggedObject)) {
|
|
172
|
-
this.validationResult.issue(new GenericIssue(jsonContext, `Property value '${propertyDef.name}' expects an array, found '${typeof taggedObject}'`))
|
|
173
|
-
} else {
|
|
174
|
-
taggedObject.forEach((taggedObjectSingle, index) => {
|
|
175
|
-
this.validateTaggedObject(taggedObjectSingle, jsonContext.concat(index))
|
|
176
|
-
})
|
|
177
|
-
}
|
|
178
|
-
} else {
|
|
179
|
-
if (!(typeof taggedObject === "object")) {
|
|
180
|
-
this.validationResult.issue(new GenericIssue(jsonContext, `Property value '${propertyDef.name}' expects an object, found '${typeof taggedObject}'`))
|
|
181
|
-
} else {
|
|
182
|
-
this.validateTaggedObject(taggedObject as UnknownObjectType, jsonContext)
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Validate a single tagged object
|
|
189
|
-
* @param taggedObject
|
|
190
|
-
* @param jsonContext
|
|
191
|
-
*/
|
|
192
|
-
validateTaggedObject(taggedObject: UnknownObjectType, jsonContext: JsonContext): void {
|
|
193
|
-
const actualTypeName = taggedObject["messageKind"] as string
|
|
194
|
-
const actualType = this.schema.getDefinition(actualTypeName)
|
|
195
|
-
if (actualType === undefined || !isObjectDefinition(actualType)) {
|
|
196
|
-
this.validationResult.issue(new GenericIssue(jsonContext, `Expected object type is ${typeof taggedObject}, should be object`))
|
|
197
|
-
} else {
|
|
198
|
-
this.validateObjectProperties(actualTypeName, actualType, taggedObject, jsonContext)
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
149
|
/**
|
|
203
150
|
* Check whether there are extra properties that should not be there.
|
|
204
151
|
* @param obj Object to be validated
|
|
@@ -1,84 +1,52 @@
|
|
|
1
|
-
import { Definition,
|
|
1
|
+
import { Definition, PrimitiveDefinition, TaggedUnionDefinition } from "./ValidationTypes.js"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A collection of object and primitive definitions describing JSON objects.
|
|
5
|
-
* Used to
|
|
5
|
+
* Used to
|
|
6
6
|
* - validate an incoming JSON object
|
|
7
|
-
* - generate the corresponding TypeScript type definitions
|
|
7
|
+
* - generate the corresponding TypeScript type definitions
|
|
8
|
+
* - generate handlers for the JSOn objects (in @lionweb/server)
|
|
8
9
|
*/
|
|
9
10
|
export class DefinitionSchema {
|
|
10
|
-
|
|
11
|
+
unionDefinition: TaggedUnionDefinition | undefined
|
|
11
12
|
/**
|
|
12
13
|
* Mapping from extenden object type name to list of extending Object Definitions
|
|
13
14
|
*/
|
|
14
|
-
taggedUnions: Map<string, Definition[]> = new Map<string, Definition[]>()
|
|
15
15
|
definitionsMap: Map<string, Definition> = new Map<string, Definition>()
|
|
16
16
|
|
|
17
|
-
constructor(
|
|
17
|
+
constructor(definitions: Definition[], taggedUnion?: TaggedUnionDefinition) {
|
|
18
18
|
this.add(definitions)
|
|
19
|
-
this.
|
|
19
|
+
this.unionDefinition = taggedUnion
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
getDefinition(name: string): Definition | undefined {
|
|
23
23
|
return this.definitionsMap.get(name)
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
addTaggedUnion(defs: TaggedUnionDefinition[]){
|
|
27
|
-
this.unionDefinitions.push(...defs)
|
|
28
|
-
}
|
|
29
25
|
|
|
30
26
|
add(definitions :Definition[] | Definition) {
|
|
31
27
|
if (!Array.isArray(definitions)) {
|
|
32
28
|
definitions = [definitions]
|
|
33
29
|
}
|
|
34
30
|
for(const def of definitions) {
|
|
35
|
-
if (isObjectDefinition(def)) {
|
|
36
|
-
if (def.taggedUnionType !== "") {
|
|
37
|
-
let existingExtends = this.taggedUnions.get(def.taggedUnionType!)
|
|
38
|
-
if (existingExtends === undefined) {
|
|
39
|
-
existingExtends = []
|
|
40
|
-
this.taggedUnions.set(def.taggedUnionType!, existingExtends)
|
|
41
|
-
}
|
|
42
|
-
existingExtends.push(def)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
31
|
this.definitionsMap.set(def.name, def)
|
|
46
32
|
}
|
|
47
33
|
}
|
|
48
|
-
|
|
34
|
+
|
|
49
35
|
isTagProperty(propertyName: string): boolean {
|
|
50
|
-
return this.
|
|
36
|
+
return this.unionDefinition?.unionProperty === propertyName
|
|
51
37
|
}
|
|
52
38
|
|
|
53
39
|
definitions(): Definition[] {
|
|
54
40
|
return Array.from(this.definitionsMap.values())
|
|
55
41
|
}
|
|
56
|
-
|
|
57
|
-
getTaggedUnionDefinition(name: string): TaggedUnionDefinition | undefined {
|
|
58
|
-
return this.unionDefinitions.find(def => def.unionType === name)
|
|
59
|
-
}
|
|
60
42
|
|
|
61
43
|
isUnionDiscriminator(propDef: PrimitiveDefinition): boolean {
|
|
62
|
-
return this.
|
|
44
|
+
return this.unionDefinition?.unionDiscriminator === propDef.name
|
|
63
45
|
}
|
|
64
46
|
|
|
65
|
-
|
|
66
|
-
const result = this.taggedUnions.get(name)
|
|
67
|
-
if (result === undefined) {
|
|
68
|
-
return []
|
|
69
|
-
} else {
|
|
70
|
-
return Array.from(result.values())
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
static join(...schema: DefinitionSchema[]): DefinitionSchema {
|
|
75
|
-
const result = new DefinitionSchema([], [])
|
|
47
|
+
joinDefinitions(...schema: DefinitionSchema[]): void {
|
|
76
48
|
schema.forEach(sch => {
|
|
77
|
-
sch.definitions()
|
|
78
|
-
result.add([value])
|
|
79
|
-
})
|
|
80
|
-
result.addTaggedUnion(sch.unionDefinitions)
|
|
49
|
+
this.add(sch.definitions())
|
|
81
50
|
})
|
|
82
|
-
return result
|
|
83
51
|
}
|
|
84
52
|
}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA"}
|
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { LionWebJsonMetaPointer, LionWebJsonNode } from "@lionweb/json";
|
|
2
|
-
import { JsonContext } from "@lionweb/json-utils";
|
|
3
|
-
import { ValidationIssue } from "./ValidationIssue.js";
|
|
4
|
-
export declare class Language_PropertyValue_Issue extends ValidationIssue {
|
|
5
|
-
property: string;
|
|
6
|
-
value: string | null;
|
|
7
|
-
expectedType: string;
|
|
8
|
-
readonly issueType = "PropertyValueIncorrect";
|
|
9
|
-
constructor(context: JsonContext, property: string, value: string | null, expectedType: string);
|
|
10
|
-
msg: () => string;
|
|
11
|
-
}
|
|
12
|
-
export declare abstract class Language_IncorrectMetaPointerType_Issue extends ValidationIssue {
|
|
13
|
-
metaPointer: LionWebJsonMetaPointer;
|
|
14
|
-
incorrectType: string;
|
|
15
|
-
abstract readonly metaType: string;
|
|
16
|
-
constructor(context: JsonContext, metaPointer: LionWebJsonMetaPointer, incorrectType: string);
|
|
17
|
-
msg: () => string;
|
|
18
|
-
}
|
|
19
|
-
export declare class Language_IncorrectPropertyMetaPointer_Issue extends Language_IncorrectMetaPointerType_Issue {
|
|
20
|
-
readonly issueType = "IncorrectPropertyMetaPointer";
|
|
21
|
-
readonly metaType = "Property";
|
|
22
|
-
}
|
|
23
|
-
export declare abstract class Language_FeatureMetaPointerNotInClassifier_Issue extends ValidationIssue {
|
|
24
|
-
featureMetaPointer: LionWebJsonMetaPointer;
|
|
25
|
-
classifierPointer: LionWebJsonNode;
|
|
26
|
-
abstract readonly metaType: string;
|
|
27
|
-
constructor(context: JsonContext, featureMetaPointer: LionWebJsonMetaPointer, classifierPointer: LionWebJsonNode);
|
|
28
|
-
msg: () => string;
|
|
29
|
-
}
|
|
30
|
-
export declare class Language_PropertyMetaPointerNotInClass_Issue extends Language_FeatureMetaPointerNotInClassifier_Issue {
|
|
31
|
-
readonly issueType = "PropertyMetaPointerNotInClass";
|
|
32
|
-
readonly metaType = "Property";
|
|
33
|
-
}
|
|
34
|
-
export declare class Language_ReferenceMetaPointerNotInClass_Issue extends Language_FeatureMetaPointerNotInClassifier_Issue {
|
|
35
|
-
readonly issueType = "ReferenceMetaPointerNotInClass";
|
|
36
|
-
readonly metaType = "Reference";
|
|
37
|
-
}
|
|
38
|
-
export declare class Language_ContainmentMetaPointerNotInClass_Issue extends Language_FeatureMetaPointerNotInClassifier_Issue {
|
|
39
|
-
readonly issueType = "ContainmentMetaPointerNotInClass";
|
|
40
|
-
readonly metaType = "Containment";
|
|
41
|
-
}
|
|
42
|
-
export declare class Language_IncorrectConceptMetaPointer_Issue extends Language_IncorrectMetaPointerType_Issue {
|
|
43
|
-
readonly issueType = "IncorrectConceptMetaPointer";
|
|
44
|
-
readonly metaType = "Concept";
|
|
45
|
-
}
|
|
46
|
-
export declare class Language_IncorrectReferenceMetaPointer_Issue extends Language_IncorrectMetaPointerType_Issue {
|
|
47
|
-
readonly issueType = "IncorrectReferenceMetaPointer";
|
|
48
|
-
readonly metaType = "Reference";
|
|
49
|
-
}
|
|
50
|
-
export declare class Language_IncorrectContainmentMetaPointer_Issue extends Language_IncorrectMetaPointerType_Issue {
|
|
51
|
-
readonly issueType = "IncorrectContainmentMetaPointer";
|
|
52
|
-
readonly metaType = "Containment";
|
|
53
|
-
}
|
|
54
|
-
export declare abstract class Language_UnknownMetaPointer_Issue extends ValidationIssue {
|
|
55
|
-
metaPointer: LionWebJsonMetaPointer;
|
|
56
|
-
abstract readonly metaType: string;
|
|
57
|
-
constructor(context: JsonContext, metaPointer: LionWebJsonMetaPointer);
|
|
58
|
-
msg: () => string;
|
|
59
|
-
}
|
|
60
|
-
export declare class Language_UnknownReference_Issue extends Language_UnknownMetaPointer_Issue {
|
|
61
|
-
readonly issueType = "UnknownReference";
|
|
62
|
-
readonly metaType = "Reference";
|
|
63
|
-
}
|
|
64
|
-
export declare class Language_UnknownContainment_Issue extends Language_UnknownMetaPointer_Issue {
|
|
65
|
-
readonly issueType = "UnknownContainment";
|
|
66
|
-
readonly metaType = "Containment";
|
|
67
|
-
}
|
|
68
|
-
export declare class Language_UnknownProperty_Issue extends Language_UnknownMetaPointer_Issue {
|
|
69
|
-
readonly issueType = "UnknownProperty";
|
|
70
|
-
readonly metaType = "Property";
|
|
71
|
-
}
|
|
72
|
-
export declare class Language_UnknownConcept_Issue extends Language_UnknownMetaPointer_Issue {
|
|
73
|
-
readonly issueType = "UnknownConcept";
|
|
74
|
-
readonly metaType = "Concept";
|
|
75
|
-
}
|
|
76
|
-
export declare class NumberOfLanguagesUsed_Issue extends ValidationIssue {
|
|
77
|
-
nrOfLanguages: number;
|
|
78
|
-
readonly issueType = "NumberOfLanguagesUsed";
|
|
79
|
-
constructor(context: JsonContext, nrOfLanguages: number);
|
|
80
|
-
msg: () => string;
|
|
81
|
-
}
|
|
82
|
-
export declare class MissingM3Language_Issue extends ValidationIssue {
|
|
83
|
-
readonly issueType = "MissingM3Language";
|
|
84
|
-
constructor(context: JsonContext);
|
|
85
|
-
msg: () => string;
|
|
86
|
-
}
|
|
87
|
-
export declare class NotLionCoreLanguageKey_Issue extends ValidationIssue {
|
|
88
|
-
incorrectKey: string;
|
|
89
|
-
readonly issueType = "NotLionCoreLanguageKey";
|
|
90
|
-
constructor(context: JsonContext, incorrectKey: string);
|
|
91
|
-
msg: () => string;
|
|
92
|
-
}
|
|
93
|
-
export declare class IncorrectLionCoreVersion_Issue extends ValidationIssue {
|
|
94
|
-
incorrectVersion: string;
|
|
95
|
-
readonly issueType = "IncorrectLionCoreVersion";
|
|
96
|
-
constructor(context: JsonContext, incorrectVersion: string);
|
|
97
|
-
msg: () => string;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=LanguageIssues.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageIssues.d.ts","sourceRoot":"","sources":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