github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/internal/fs/schemas/choria/protocol/v2/secure_reply.json (about)

     1  {
     2    "$schema": "http://json-schema.org/draft-07/schema",
     3    "$id": "https://choria.io/schemas/choria/protocol/v2/secure_reply.json",
     4    "description": "Choria Secure Reply version 2",
     5    "title":"SecureReplyV2",
     6    "type":"object",
     7    "required":[
     8      "protocol",
     9      "reply",
    10      "hash"
    11    ],
    12    "properties": {
    13      "protocol": {
    14        "type":"string",
    15        "const": "io.choria.protocol.v2.secure_reply"
    16      },
    17      "reply": {
    18        "type":"string",
    19        "description": "Base64 encoded JSON version of a ReplyV2",
    20        "minLength":1
    21      },
    22      "hash": {
    23        "type":"string",
    24        "description": "Hex encoded sha256 of the reply",
    25        "minLength": 1
    26      },
    27      "signature": {
    28        "type":"string",
    29        "description": "A hex encoded signature made using the ed25519 seed of the sender",
    30        "minLength": 1
    31      },
    32      "sender": {
    33        "type": "string",
    34        "description": "The JWT of the sending host"
    35      }
    36    }
    37  }