JSON_Msg Specification

Protocols: JSON_Msg

JSON_Msg

{
	"$id": "validate_Msg",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"type" : "object",
	"required" : ["id", "referer", "dt"],
	"properties" : {
		"id" : { "type" : "string"},
		"referer" : {
			"type" : "array",
			"minItems" : 2,
			"maxItems": 2,
			"items": { "type" : "string" }
		},
		"dt" : { "type" : "string" }
	}
}
  • referer [sic] — 

    • [0] — package, product or service name.

    • [1] — instance specifier.

JSON_Msg_msg

{
	"$id": "validate_Msg_msg",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"type" : "object",
	"required" : ["_msg"]

	// ... JSON_Msg format
}
  • _msg — original message this message is in regards to.

JSON_MsgAck

{
	"$id": "validate_MsgAck",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"type" : "object",
	"required" : ["ack"],
	"properties" : {
		"ack" : {
			"type" : "object",
			"required" : ["ok"],
			"properties" : {
				"ok" : { "type" : "boolean" }
			}
		}
	}

	// ... JSON_Msg_msg format
}