Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@signalk/signalk-schema

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalk/signalk-schema - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

bin/test.js

16

dist/index.js

@@ -45,14 +45,14 @@ 'use strict';

var vesselSchema = require('../schemas/vessel.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/vessel.json', vesselSchema);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/vessel.json', vesselSchema);
var aircraftSchema = require('../schemas/aircraft.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/aircraft.json', aircraftSchema);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/aircraft.json', aircraftSchema);
var atonSchema = require('../schemas/aton.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/aton.json', atonSchema);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/aton.json', atonSchema);
var sarSchema = require('../schemas/sar.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/sar.json', sarSchema);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/sar.json', sarSchema);
var definitions = require('../schemas/definitions.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/definitions.json', definitions);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/definitions.json', definitions);
for (var schema in subSchemas) {
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/groups/' + schema + '.json', subSchemas[schema]);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/groups/' + schema + '.json', subSchemas[schema]);
}

@@ -62,3 +62,3 @@

var externalGeometry = require('../schemas/external/geojson/geometry.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/external/geojson/geometry.json', externalGeometry);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/external/geojson/geometry.json', externalGeometry);
tv4.addSchema('http://json-schema.org/geojson/geometry.json', externalGeometry);

@@ -87,3 +87,3 @@

var definitions = require('../schemas/definitions.json');
tv4.addSchema('https://signalk.org/specification/1.5.0/schemas/definitions.json', definitions);
tv4.addSchema('https://signalk.org/specification/1.6.0/schemas/definitions.json', definitions);

@@ -90,0 +90,0 @@ if (ignoreContext) {

{
"name": "@signalk/signalk-schema",
"version": "1.5.1",
"version": "1.6.0",
"description": "SignalK specification schema as an npm module with tests",

@@ -11,3 +11,3 @@ "main": "dist/index.js",

"js:dist": "babel src --out-dir dist --copy-files",
"schema:version": "cross-var replace-in-file /https:\\\\/\\\\/signalk.org\\\\/specification\\\\/[\\\\w\\\\.]+\\\\/schemas\\\\//g https://signalk.org/specification/$npm_package_version/schemas/ ./**/*.j* --ignore=./package.json,./node_modules/** --isRegex --verbose",
"schema:version": "cross-var replace-in-file /https:\\\\/\\\\/signalk.org\\\\/specification\\\\/[\\\\w\\\\.]+\\\\/schemas\\\\//g https://signalk.org/specification/$npm_package_version/schemas/ './**/*.j*' --ignore=./package.json,./node_modules/** --isRegex --verbose",
"schema:publish": "git checkout gh-pages && git checkout master -- schemas && cross-var mkdir $npm_package_version && cross-var git add $npm_package_version && cross-var git mv schemas/ $npm_package_version/ && git commit -m \"Schemas from master\" && git push",

@@ -48,5 +48,5 @@ "docs:changelog": "github-changes -f gitbook-docs/changelog.md -o signalk -r specification -a --only-pulls --use-commit-body --data=pulls",

"JSONStream": "^0.7.4",
"debug": "^2.2.0",
"json-schema-ref-parser": "^3.1.2",
"lodash": "^4.17.11",
"debug": "^4.3.1",
"json-schema-ref-parser": "^9.0.7",
"lodash": "^4.17.21",
"tv4": "^1.2.7",

@@ -53,0 +53,0 @@ "tv4-formats": "^3.0.3"

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/aircraft.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/aircraft.json#",
"description": "An object describing an individual aircraft. It should be an object in aircraft, named using MMSI or a UUID",

@@ -6,0 +6,0 @@ "title": "aircraft",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/aton.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/aton.json#",
"description": "An object describing an individual aid to navigation. It should be an object in aton, named using MMSI or a UUID",

@@ -6,0 +6,0 @@ "title": "aid to navigation",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/definitions.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/definitions.json#",
"title": "definitions",

@@ -85,3 +85,3 @@ "description": "Reusable definitions of core object types",

"pattern": "^[0-9]{1,3}[.][0-9]{1,2}[.][0-9]{1,2}($|-[a-zA-Z0-9]+$)",
"example": "1.0.0"
"example": "1.5.0"
},

@@ -576,2 +576,34 @@ "units": {

"properties": {
"type": "object",
"title": "Properties for object valued properties",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"units": {
"type": "string"
},
"example": {
"type": [
"string",
"number",
"boolean",
"object"
]
}
}
}
}
},
"gaugeType": {

@@ -578,0 +610,0 @@ "type": "string",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/delta.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/delta.json#",
"title": "SignalK Delta message schema",

@@ -6,0 +6,0 @@ "description": "Schema for defining updates and subscriptions to parts of a SignalK data model, for example for communicating updates of data",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/discovery.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/discovery.json#",
"title": "SignalK Discovery",

@@ -6,0 +6,0 @@ "description": "Schema for SignalK discovery resources used to locate server endpoints.",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/communication.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/communication.json#",
"description": "Schema describing the communication child-object of a Vessel.",

@@ -6,0 +6,0 @@ "title": "communication",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/design.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/design.json#",
"description": "An object describing the vessels primary dimensions and statistics.",

@@ -6,0 +6,0 @@ "title": "design",

{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/electrical.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/electrical.json#",
"description": "Schema describing the electrical child-object of a Vessel.",

@@ -5,0 +5,0 @@ "title": "Electrical Properties",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/environment.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/environment.json#",
"description": "Schema describing the environmental child-object of a Vessel.",

@@ -6,0 +6,0 @@ "title": "environment",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/navigation.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/navigation.json#",
"description": "Schema describing the navigation child-object of a Vessel.",

@@ -6,0 +6,0 @@ "title": "navigation",

{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/notifications.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/notifications.json#",
"title": "notifications",

@@ -5,0 +5,0 @@ "definitions": {

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/performance.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/performance.json#",
"description": "Schema describing the performance child-object of a Vessel.",

@@ -6,0 +6,0 @@ "title": "performance",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/propulsion.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/propulsion.json#",
"title": "propulsion",

@@ -6,0 +6,0 @@ "description": "An engine, named by a unique name within this vessel",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/resources.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/resources.json#",
"title": "resources",

@@ -6,0 +6,0 @@ "description": "Resources to aid in navigation and operation of the vessel",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/sails.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/sails.json#",
"description": "An object describing the vessels sails if the vessel is a sailboat.",

@@ -6,0 +6,0 @@ "title": "sails",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/sensors.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/sensors.json#",
"description": "An object describing an individual sensor. It should be an object in vessel, named using a unique name or UUID",

@@ -6,0 +6,0 @@ "title": "sensor",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/sources.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/sources.json#",
"title": "sources",

@@ -6,0 +6,0 @@ "description": "Metadata about the sources, eg. buses and connected sensors",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/steering.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/steering.json#",
"description": "Schema describing the steering child-object of a vessel.",

@@ -6,0 +6,0 @@ "title": "steering",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/groups/tanks.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/groups/tanks.json#",
"description": "A tank, named by a unique identifier",

@@ -6,0 +6,0 @@ "definitions": {

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/hello.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/hello.json#",
"title": "SignalK Websockets Hello message schema",

@@ -13,3 +13,3 @@ "description": "Schema for defining the hello message passed from the server to a client following succesful websocket connection",

"version": {
"description": "Version of the schema and APIs that this data is using in canonical format i.e. 1.0.0.",
"description": "Version of the schema and APIs that this data is using in canonical format i.e. 1.5.0.",
"$ref": "definitions.json#/definitions/version"

@@ -16,0 +16,0 @@ },

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/messages/auth.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/messages/auth.json#",
"title": "SignalK Auth message schema",

@@ -6,0 +6,0 @@ "description": "Schema for authentication messages",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/messages/get.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/messages/get.json#",
"title": "SignalK GET message schema",

@@ -6,0 +6,0 @@ "description": "Schema for getting values of parts of a SignalK data model, for example the state of the anchor watch",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/messages/put.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/messages/put.json#",
"title": "SignalK PUT message schema",

@@ -6,0 +6,0 @@ "description": "Schema for request/response updates to parts of a SignalK data model, for example turning on anchor watch",

{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/messages/subscribe.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/messages/subscribe.json#",
"title": "SignalK SUBSCRIBE message schema",

@@ -5,0 +5,0 @@ "type": "object",

{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.0.0/schemas/messages/unsubscribe.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/messages/unsubscribe.json#",
"title": "SignalK UNSUBSCRIBE message schema",

@@ -5,0 +5,0 @@ "type": "object",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/aton.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/aton.json#",
"description": "An object describing an individual SAR beacon, eg EPIRB or transponser. It should be an object in sar, named using MMSI or a UUID",

@@ -6,0 +6,0 @@ "title": "Search and rescue beacons",

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/signalk.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/signalk.json#",
"title": "SignalK",

@@ -92,3 +92,3 @@ "description": "Root schema of Signal K. Contains the list of vessels plus a reference to the local boat (also contained in the vessels list).",

"version": {
"description": "Version of the schema and APIs that this data is using in Canonical format i.e. V1.0.0.",
"description": "Version of the schema and APIs that this data is using in Canonical format i.e. V1.5.0.",
"$ref": "definitions.json#/definitions/version"

@@ -95,0 +95,0 @@ }

{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.0/schemas/vessel.json#",
"id": "https://signalk.org/specification/1.6.0/schemas/vessel.json#",
"description": "An object describing an individual vessel. It should be an object in vessels, named using MMSI or a UUID",

@@ -6,0 +6,0 @@ "title": "vessel",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc