Commit 318f81bd authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Adding schema support for signatures and skeleton example

parent 75428cfa
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -44,4 +44,15 @@
    "exampleFiles" : [
        "examples/example4/csp_results.json"
    ]
},
{
    "coreSchema" : "schema/response.schema.json",
    "supportingSchemas" : [
        "../103280/TS_103_280.schema.json",
        "examples/example5/csp_records.schema.json",
        "schema/etsi_types.schema.json"
    ],
    "exampleFiles" : [
        "examples/example5/csp_results.json"
    ]
}]
 No newline at end of file
+24 −0
Original line number Diff line number Diff line
{
  "$id": "urn:etsi:li:ts103705_record_schema_id:0.3.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CSP Record Schema",
  "description": "Defines the valid set of Records that may appear in a RecordSet (see ETSI TS 103 705 clause 6.2.4)",
  "cspSchemaID" : "csp.example_5",
  "dateIssued" : "2024-06-20 09:42:37",
  "version" : "1.1.1",
  "$defs": {
      "record" : {
        "oneOf" : [{
          "allOf" : [
            { "$ref" : "urn:etsi:li:ts103705_type_schema_id:0.3.0#/$defs/CallRecord" },
            { "properties" : { "type" : { "const" : "urn:etsi:li:ts103705_type_schema_id:0.3.0#/$defs/CallRecord"}}}
          ]},
          {
            "allOf" : [
              { "$ref" : "urn:etsi:li:ts103705_type_schema_id:0.3.0#/$defs/MessagingRecord" },
              { "properties" : { "type" : { "const" : "urn:etsi:li:ts103705_type_schema_id:0.3.0#/$defs/MessagingRecord"}}}
            ]}            
          ]
      }
  }
}
 No newline at end of file
+49 −0
Original line number Diff line number Diff line
{
    "recordSetDescription": {
        "etsiSchemaId": "urn:etsi:li:ts103705_schema_id:0.3.0",
        "etsiSpecificationVersion": "0.3.0",
        "cspSchemaId" : "csp.example_1",
        "cspSchemaVersion" : "1.0.0",
        "resultSetId": "9a25db0c-d0f3-4ae5-b618-bd1a9a0056c2",
        "queryReference": "LDID",
        "created": "2024-04-25T09:31:56.000000Z"
    },
    "recordSet": [
        {
            "id": "3da91ade-f526-4e55-b5da-0c8178f25c24",
            "type": "urn:etsi:li:ts103705_type_schema_id:0.3.0#/$defs/CallRecord",
            "timeBegin": "2024-04-20T10:04:00.000000Z",
            "timeEnd": "2024-04-20T10:05:00.000000Z",
            "endReason": 16,
            "parties": [
                {
                    "identity": {"mSISDN": "491713920067"},
                    "role": "originating"
                },
                {
                    "identity": {"mSISDN": "441632960123"},
                    "role": "terminating"
                }
            ]
        },
        {
            "id": "8be3fc6b-a2dd-4104-9af1-d6b1f70081a0",
            "type": "urn:etsi:li:ts103705_type_schema_id:0.3.0#/$defs/MessagingRecord",
            "timeBegin": "2024-04-18T10:04:00.000000Z",
            "parties": [
                {
                    "identity": {"mSISDN": "441632960123"},
                    "role": "sender"
                },
                {
                    "identity": {"mSISDN": "491713920067"},
                    "role": "receiver"
                }
            ]
        }
    ],
    "signature" : {
        "protected": "...",
        "signature": "..."
}
}
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
CSP elects to use only ETSI-standard types in their responses

CSP imports the following types in their CSP record schema

- InformationCall
- InformationMessaging
+17 −0
Original line number Diff line number Diff line
@@ -10,6 +10,9 @@
    },
    "recordSet": {
      "$ref": "#/$defs/recordSet"
    },
    "signature": {
      "$ref" : "#/$defs/Signature"
    }
  },
  "required": [
@@ -99,6 +102,20 @@
        "id",
        "type"
      ]
    },
    "Signature": {
      "properties": {
        "protected": {
          "type": "string"
        },
        "signature": {
          "type": "string"
        }
      },
      "required": [
        "protected",
        "signature"
      ]
    }
  }
}
 No newline at end of file