Commit 4683bd8f authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Adding more examples

parent 7e491f05
Loading
Loading
Loading
Loading

103705/config.json

0 → 100644
+35 −0
Original line number Diff line number Diff line
[{
    "coreSchema" : "schema/response.schema.json",
    "supportingSchemas" : [
        "../103280/TS_103_280.schema.json",
        "examples/example1/csp_records.schema.json",
        "schema/etsi_types.schema.json"
    ],
    "exampleFiles" : [
        "examples/example1/csp_results.json"
    ]
},
{
    "coreSchema" : "schema/response.schema.json",
    "supportingSchemas" : [
        "../103280/TS_103_280.schema.json",
        "examples/example2/csp_records.schema.json",
        "examples/example2/csp_types.schema.json",
        "schema/etsi_types.schema.json"
    ],
    "exampleFiles" : [
        "examples/example2/csp_results.json"
    ]
},
{
    "coreSchema" : "schema/response.schema.json",
    "supportingSchemas" : [
        "../103280/TS_103_280.schema.json",
        "examples/example3/csp_records.schema.json",
        "examples/example3/csp_types.schema.json",
        "schema/etsi_types.schema.json"
    ],
    "exampleFiles" : [
        "examples/example3/csp_results.json"
    ]
}]
 No newline at end of file

103705/examples/csp_a.schema.json

deleted100644 → 0
+0 −64
Original line number Diff line number Diff line
{
  "$id": "example.com_csp-a-schema_1.2.3",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Example extended schema for CSP A. This CSP only ever has one person associated with a subscription - the account holder - and so composes a Subscription record from the ETSI-standard Subscription and PersonDetails entities",
  "allOf": [
    {
      "$ref": "http://etsi.org/temp/705"
    },
    {
      "type": "object",
      "properties": {
        "recordSet": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/definedRecords"
          }
        }
      },
      "required": [
        "recordSet"
      ]
    }
  ],
  "$defs": {
    "definedRecords": {
      "title" : "Defined Records",
      "description" : "Sets out what the valid set of Record types is for this CSP. It is expressed as a 'oneOf' list, each of which combines a type identifier and a reference to the type that is used to validate the record",
      "oneOf": [
        {
          "allOf": [
            {
              "type": "object",
              "title" : "Subscriber record",
              "description" : "Uses the ETSI-standard subscriber record (the first $ref), extended to include person details (the second $ref)",
              "properties": {
                "type": {
                  "const": "Subscription"
                }
              }
            },
            {
              "description" : "Uses the basic ETSI-standard subscriber record fields as a base",
              "$ref": "http://etsi.org/temp/705/entities#/$defs/Subscription"
            },
            {
              "description" : "Extends the basic ETSI standard subscriber record according to the definition in extendedSubscriberRecord",
              "$ref": "#/$defs/extendedSubscriberRecord"
            }
          ]
        }
      ]
    },
    "extendedSubscriberRecord" : {
      "title" : "Extended Subscriber Record",
      "description" : "Here CSP A can describe all the extra fields that they want to put in their subscriber record. In this case, they just add the details of the account holder using the ETSI-standard PersonDetails type",
      "properties" : {
        "title" : "Account Holder",
        "description" : "Name and date of birth of the account holder for the description",
        "accountHolder" : { "$ref" : "http://etsi.org/temp/705/entities#/$defs/PersonDetails"}
      },
      "required" : ["personDetails"]
    }
  }
}
 No newline at end of file
+0 −22
Original line number Diff line number Diff line
{
    "recordSetDescription" : {
        "schemaId" : "etsi.org/ts_103_705/1.1.1",
        "resultSetId" : "788e190d-fb2e-416e-9798-12a66ebe0a1a",
        "queryReference" : "LDID_1",
        "created" : "2023-06-08T09:31:56.000000Z",
        "recordTypes" : {
            "Subscription" : "example.com_csp-a-schema_1.2.3#$defs/extendedSubscriberRecord"
        }
    },
    "recordSet" : [
        {
            "id" : "1e997322-b813-437b-b2e2-dae732f0cf7f",
            "type" : "Subscription",
            "subscriptionId" : "{unique CSP subscription ID}",
            "personDetails" : {
                "lastName" : "Last",
                "firstName" : "First"
            }
        }
    ]
}
 No newline at end of file
+25 −0
Original line number Diff line number Diff line
{
  "$id": "etsi.org_ts103705_records",
  "$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)",
  "owner" : "Example CSP",
  "cspSchemaID" : "csp.example_1",
  "dateIssued" : "2024-04-024T09:00:01Z",
  "version" : "1.1.1",
  "$defs": {
      "record" : {
        "oneOf" : [{
          "allOf" : [
            { "$ref" : "etsi.org_ts103705_1.3.1_etsi-types#/$defs/InformationCall" },
            { "properties" : { "type" : { "const" : "etsi.org_ts103705_1.3.1_etsi-types#/$defs/InformationCall"}}}
          ]},
          {
            "allOf" : [
              { "$ref" : "etsi.org_ts103705_1.3.1_etsi-types#/$defs/InformationMessaging" },
              { "properties" : { "type" : { "const" : "etsi.org_ts103705_1.3.1_etsi-types#/$defs/InformationMessaging"}}}
            ]}            
          ]
      }
  }
}
 No newline at end of file
+42 −0
Original line number Diff line number Diff line
{
    "recordSetDescription": {
        "schemaId": "etsi.org/ts_103_705/1.1.1",
        "resultSetId": "9a25db0c-d0f3-4ae5-b618-bd1a9a0056c2",
        "queryReference": "LDID",
        "created": "2024-04-25T09:31:56.000000Z"
    },
    "recordSet": [
        {
            "id": "3da91ade-f526-4e55-b5da-0c8178f25c24",
            "type": "etsi.org_ts103705_1.3.1_etsi-types#/$defs/InformationCall",
            "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": "etsi.org_ts103705_1.3.1_etsi-types#/$defs/InformationMessaging",
            "timeBegin": "2024-04-18T10:04:00.000000Z",
            "parties": [
                {
                    "identity": {"mSISDN": "441632960123"},
                    "role": "sender"
                },
                {
                    "identity": {"mSISDN": "491713920067"},
                    "role": "receiver"
                }
            ]
        }
    ]
}
 No newline at end of file
Loading