Skip to content

Commit e329d9a

Browse files
authored
lib: use specversion from schema (#116)
This commit updates the 0.1 and 0.3 sources to use the specversion available in schema definitions. Signed-off-by: Daniel Bevenius <[email protected]>
1 parent 07323e0 commit e329d9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/specs/spec_0_3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const isValidAgainstSchema = ajv.compile(schema);
3535

3636
function Spec03(_caller) {
3737
this.payload = {
38-
specversion: "0.3",
38+
specversion: schema.definitions.specversion.const,
3939
id: uuidv4()
4040
};
4141

lib/specs/spec_1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const isValidAgainstSchema = ajv.compile(schema);
3737

3838
function Spec1(_caller) {
3939
this.payload = {
40-
specversion: "1.0",
40+
specversion: schema.definitions.specversion.const,
4141
id: uuidv4()
4242
};
4343

0 commit comments

Comments
 (0)