From e3ceadd81bd4b99cc95ffbed0b346067eb28f955 Mon Sep 17 00:00:00 2001 From: Jason Greenwood <79181587+Techstyleuk@users.noreply.github.com> Date: Sat, 17 Feb 2024 21:26:05 -0600 Subject: [PATCH 1/2] Waypoint ID added to Course Definitions Updating the specification to be inline with how its parsed in some of the nmea0183-signalk hooks. for example, APB. see: https://github.com/SignalK/nmea0183-signalk/issues/239 This is a partial fix --- schemas/groups/navigation.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/schemas/groups/navigation.json b/schemas/groups/navigation.json index 9e4d6200..1fa3ecd1 100644 --- a/schemas/groups/navigation.json +++ b/schemas/groups/navigation.json @@ -98,7 +98,11 @@ "estimatedTimeOfArrival": { "$ref": "../definitions.json#/definitions/datetimeValue", "description": "The estimated time of arrival at nextPoint position" - } + }, + "ID": { + "$ref": "../definitions.json#/definitions/numberValue", + "description": "The waypoint ID" + } } } ] @@ -133,7 +137,11 @@ "position": { "description": "The position of lastPoint in two dimensions", "$ref": "../definitions.json#/definitions/position" - } + }, + "ID": { + "$ref": "../definitions.json#/definitions/numberValue", + "description": "The waypoint ID" + } } } ] From 6bf552f65463d6800ee4ae50b664f0fa1d3d25e6 Mon Sep 17 00:00:00 2001 From: Jason Greenwood <79181587+Techstyleuk@users.noreply.github.com> Date: Sat, 17 Feb 2024 21:53:48 -0600 Subject: [PATCH 2/2] Updated package.json after testing this file was updated after running npm test --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d20ebc4b..0b7767be 100644 --- a/package.json +++ b/package.json @@ -39,15 +39,15 @@ }, "homepage": "https://github.com/SignalK/specification", "dependencies": { - "JSONStream": "^0.7.4", - "debug": "^4.3.1", "@apidevtools/json-schema-ref-parser": "^9.1.0", + "debug": "^4.3.1", + "JSONStream": "^0.7.4", "lodash": "^4.17.21", "tv4": "^1.2.7", "tv4-formats": "^3.0.3" }, "devDependencies": { - "babel-cli": "^6.24.1", + "babel-cli": "^6.26.0", "babel-preset-es2015": "^6.24.1", "chai": "^1.9.2", "cross-var": "1.1.0",