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 <daniel.bevenius@gmail.com>
This commit is contained in:
parent
07323e078f
commit
e329d9ac00
|
@ -35,7 +35,7 @@ const isValidAgainstSchema = ajv.compile(schema);
|
||||||
|
|
||||||
function Spec03(_caller) {
|
function Spec03(_caller) {
|
||||||
this.payload = {
|
this.payload = {
|
||||||
specversion: "0.3",
|
specversion: schema.definitions.specversion.const,
|
||||||
id: uuidv4()
|
id: uuidv4()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ const isValidAgainstSchema = ajv.compile(schema);
|
||||||
|
|
||||||
function Spec1(_caller) {
|
function Spec1(_caller) {
|
||||||
this.payload = {
|
this.payload = {
|
||||||
specversion: "1.0",
|
specversion: schema.definitions.specversion.const,
|
||||||
id: uuidv4()
|
id: uuidv4()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue