Commit b36efa8b authored by Herbert Slaghekke's avatar Herbert Slaghekke
Browse files

Update file ts_103120_Core.schema.json

parent c5367509
Loading
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
@@ -14,6 +14,32 @@
        "Payload": {
          "$ref": "#/$defs/MessagePayload"
        },
        "Signatures": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
              "properties": {
                "hash_algorithm": {
                  "type": "string"
                },
                "algorithm": {
                  "type": "string"
                },
                "public_key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "hash_algorithm",
                "algorithm",
                "value"
              ]
            }
          },
        "Signature": {
          "properties": {
            "protected": {
@@ -29,6 +55,44 @@
          ]
        }
      },
      "oneOf": [
        {
          "required": [
            "Signatures"
          ],
          "not": {
            "required": [
              "Signature"
            ]
          }
        },
        {
          "required": [
            "Signature"
          ],
          "not": {
            "required": [
              "Signatures"
            ]
          }
        },
        {
          "not": {
            "anyOf": [
              {
                "required": [
                  "Signatures"
                ]
              },
              {
                "required": [
                  "Signature"
                ]
              }
            ]
          }
        }
      ],
      "required": [
        "Header",
        "Payload"