0.1.0 • Published 1 year ago

@ipsme/json-msg v0.1.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year 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

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago