0.1.0 • Published 2 years ago

@ipsme/json-msg v0.1.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago
{
	"$id": "validate_Msg",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"type" : "object",
	"required" : ["id", "referer", "dt"],
	"properties" : {
		"id" : { "type" : "string"},
		"referer" : { "type" : "string"},
		"dt" : { "type" : "string" }
	}
}
{
	"$id": "validate_Msg_msg",
	"$schema": "http://json-schema.org/draft-07/schema#",
	"type" : "object",
	"required" : ["_msg"]
}
{
	"$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" }
			}
		}
	}
}

TODO: add optional expired property

0.1.0

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago