@shaclmate/compiler 4.0.64 → 4.0.65
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.
|
@@ -10,8 +10,6 @@ export declare class ObjectType_DiscriminantProperty extends ObjectType_Abstract
|
|
|
10
10
|
readonly kind = "Discriminant";
|
|
11
11
|
readonly mutable = false;
|
|
12
12
|
readonly recursive = false;
|
|
13
|
-
readonly schema: Maybe<Code>;
|
|
14
|
-
readonly schemaType: Maybe<Code>;
|
|
15
13
|
readonly value: string;
|
|
16
14
|
constructor({ configuration, value, ...superParameters }: {
|
|
17
15
|
value: string;
|
|
@@ -19,6 +17,8 @@ export declare class ObjectType_DiscriminantProperty extends ObjectType_Abstract
|
|
|
19
17
|
get jsonName(): string;
|
|
20
18
|
get jsonSchema(): ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["jsonSchema"];
|
|
21
19
|
get jsonSignature(): Maybe<Code>;
|
|
20
|
+
get schema(): Maybe<Code>;
|
|
21
|
+
get schemaType(): Maybe<Code>;
|
|
22
22
|
get values(): readonly string[];
|
|
23
23
|
private get constValue();
|
|
24
24
|
constructorInitializer(): Maybe<Code>;
|
|
@@ -17,8 +17,6 @@ export class ObjectType_DiscriminantProperty extends ObjectType_AbstractProperty
|
|
|
17
17
|
kind = "Discriminant";
|
|
18
18
|
mutable = false;
|
|
19
19
|
recursive = false;
|
|
20
|
-
schema = Maybe.empty();
|
|
21
|
-
schemaType = Maybe.empty();
|
|
22
20
|
value;
|
|
23
21
|
constructor({ configuration, value, ...superParameters }) {
|
|
24
22
|
super({
|
|
@@ -41,6 +39,12 @@ export class ObjectType_DiscriminantProperty extends ObjectType_AbstractProperty
|
|
|
41
39
|
get jsonSignature() {
|
|
42
40
|
return Maybe.of(code `readonly "${this.jsonName}": ${this.type.expression}`);
|
|
43
41
|
}
|
|
42
|
+
get schema() {
|
|
43
|
+
return Maybe.of(code `${{ kind: this.kind, value: this.value }}`);
|
|
44
|
+
}
|
|
45
|
+
get schemaType() {
|
|
46
|
+
return Maybe.of(code `${{ kind: this.kind, value: this.value }}`);
|
|
47
|
+
}
|
|
44
48
|
get values() {
|
|
45
49
|
return [this.value];
|
|
46
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@shaclmate/shacl-ast": "4.0.
|
|
3
|
+
"@shaclmate/shacl-ast": "4.0.65",
|
|
4
4
|
"@rdfjs/dataset": "~2.0.2",
|
|
5
5
|
"@rdfjs/prefix-map": "~0.1.2",
|
|
6
6
|
"@rdfjs/term-map": "~2.0.2",
|
|
@@ -721,5 +721,5 @@
|
|
|
721
721
|
},
|
|
722
722
|
"type": "module",
|
|
723
723
|
"types": "./dist/index.d.ts",
|
|
724
|
-
"version": "4.0.
|
|
724
|
+
"version": "4.0.65"
|
|
725
725
|
}
|