From 49df0f8bc8a6e42869e035dd9db7cc3e0ba0f369 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 18 May 2023 11:58:07 +0100 Subject: [PATCH 01/22] Using xmltodict to generate json --- 103120/examples/request1.json | 92 ++++++++ 103120/utils/validate.py | 94 +++++++++ 103120/utils/xml_to_json.py | 12 ++ 103280/TS_103_280.schema.json | 387 ++++++++++++++++++++++++++++++++++ 4 files changed, 585 insertions(+) create mode 100644 103120/examples/request1.json create mode 100644 103120/utils/validate.py create mode 100644 103120/utils/xml_to_json.py create mode 100644 103280/TS_103_280.schema.json diff --git a/103120/examples/request1.json b/103120/examples/request1.json new file mode 100644 index 0000000..a73501e --- /dev/null +++ b/103120/examples/request1.json @@ -0,0 +1,92 @@ +{ + "HI1Message": { + "@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", + "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", + "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", + "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", + "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", + "Header": { + "SenderIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR01" + }, + "ReceiverIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR02" + }, + "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", + "Timestamp": "2015-09-01T12:00:00.000000Z", + "Version": { + "ETSIVersion": "V1.13.1", + "NationalProfileOwner": "XX", + "NationalProfileVersion": "v1.0" + } + }, + "Payload": { + "RequestPayload": { + "ActionRequests": { + "ActionRequest": [ + { + "ActionIdentifier": "0", + "CREATE": { + "HI1Object": { + "@xsi:type": "auth:AuthorisationObject", + "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "auth:AuthorisationReference": "W000001", + "auth:AuthorisationTimespan": { + "auth:StartTime": "2015-09-01T12:00:00Z", + "auth:EndTime": "2015-12-01T12:00:00Z" + } + } + } + }, + { + "ActionIdentifier": "1", + "CREATE": { + "HI1Object": { + "@xsi:type": "task:LITaskObject", + "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "AssociatedObjects": { + "AssociatedObject": "7dbbc880-8750-4d3c-abe7-ea4a17646045" + }, + "task:Reference": "LIID1", + "task:TargetIdentifier": { + "task:TargetIdentifierValues": { + "task:TargetIdentifierValue": { + "task:FormatType": { + "task:FormatOwner": "ETSI", + "task:FormatName": "InternationalE164" + }, + "task:Value": "442079460223" + } + } + }, + "task:DeliveryType": { + "common:Owner": "ETSI", + "common:Name": "TaskDeliveryType", + "common:Value": "IRIandCC" + }, + "task:DeliveryDetails": { + "task:DeliveryDestination": { + "task:DeliveryAddress": { + "task:IPv4Address": "192.0.2.0" + } + } + }, + "task:CSPID": { + "CountryCode": "XX", + "UniqueIdentifier": "RECVER01" + } + } + } + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/103120/utils/validate.py b/103120/utils/validate.py new file mode 100644 index 0000000..a290ed3 --- /dev/null +++ b/103120/utils/validate.py @@ -0,0 +1,94 @@ +import sys +from jsonschema import validate, RefResolver, Draft202012Validator +import json +from pathlib import Path +import logging +import argparse + + + +# filename = sys.argv[1] + +# def load_json (path): +# with open(path) as f: +# s = json.load(f) +# return s + +# schema_store = {} + +# json_instance = load_json(filename) +# print (json_instance) + +# etsi_schema = load_json('response.schema.json') +# ext_schema = load_json('extended.schema.json') +# ext_ent_schema = load_json("extended_entities.schema.json") +# schema_store = { +# etsi_schema['$id'] : etsi_schema, +# ext_schema['$id'] : ext_schema, +# ext_ent_schema['$id'] : ext_ent_schema +# } + +# resolver = RefResolver(None, referrer=None, store=schema_store) + +# print (etsi_schema) + +# v = Draft202012Validator(ext_schema, resolver=resolver) +# v.validate(json_instance) + +# validate(json_instance, ext_schema) +# print ("OK") + +def handle_uri(u): + print(u) + +def load_json(path : str): + with open(path) as f: + return json.load(f) + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + + parser.add_argument('-s','--schemadir', action="append", help="Directory containing supporting schema files to use for validation") + parser.add_argument('-v', '--verbose', action="count", help="Verbose logging (can be specified multiple times)") + parser.add_argument('schema', help="Primary schema to validate against") + parser.add_argument('filename', help="JSON instance document to validate") + + args = parser.parse_args() + + match args.verbose: + case v if v and v >= 2: + logging.basicConfig(level=logging.DEBUG) + case 1: + logging.basicConfig(level=logging.INFO) + case _: + logging.basicConfig(level=logging.WARNING) + + logging.debug(f"Arguments: {args}") + + instance_doc = load_json(args.filename) + main_schema = load_json(args.schema) + schema_dict = { main_schema['$id'] : main_schema } + + if args.schemadir: + schema_paths = [] + for d in args.schemadir: + schema_paths += [f for f in Path(d).rglob("*.schema.json")] + logging.info(f"Schema files loaded: {schema_paths}") + + schemas_json = [json.load(p.open()) for p in schema_paths] + schema_dict = schema_dict | { s['$id'] : s for s in schemas_json } + + logging.info(f"Schema IDs loaded: {[k for k in schema_dict.keys()]}") + + logging.debug (f"Instance doc: {instance_doc}") + logging.debug (f"Main schema: {main_schema}") + + resolver = RefResolver(None, + referrer=None, + store=schema_dict) + + v = Draft202012Validator(main_schema, resolver=resolver) + + v.validate(instance_doc) + + logging.info("Done") \ No newline at end of file diff --git a/103120/utils/xml_to_json.py b/103120/utils/xml_to_json.py new file mode 100644 index 0000000..0615a03 --- /dev/null +++ b/103120/utils/xml_to_json.py @@ -0,0 +1,12 @@ +import xmltodict +from pprint import pprint +import json + +with open('../examples/request1.xml') as f: + s = f.read() + +d = xmltodict.parse(s) +pprint (d) + +with open('../examples/request.json', 'w') as f2: + f2.write(json.dumps(d)) \ No newline at end of file diff --git a/103280/TS_103_280.schema.json b/103280/TS_103_280.schema.json new file mode 100644 index 0000000..523a1a5 --- /dev/null +++ b/103280/TS_103_280.schema.json @@ -0,0 +1,387 @@ +{ + "$id" : "http://etsi.org/temp/280", + "$schema" : "https://json-schema.org/draft/2020-12/schema", + "title" : "ETSI TS 103 280 (temp)", + "description" : "A stubbed version of TS 103 280 definitions (need a CR to 280 for this)", + "$defs": { + "ShortString": { + "type": "string", + "maxLength": 255 + }, + "LongString": { + "type": "string", + "maxLength": 65535 + }, + "LIID": { + "type": "string", + "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" + }, + "UTCDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" + }, + "UTCMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" + }, + "QualifiedDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "QualifiedMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "InternationalE164": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "IMSI": { + "type": "string", + "pattern": "^[0-9]{6,15}$" + }, + "IMEI": { + "type": "string", + "pattern": "^[0-9]{14}$" + }, + "IMEICheckDigit": { + "type": "string", + "pattern": "^[0-9]{15}$" + }, + "IMEISV": { + "type": "string", + "pattern": "^[0-9]{16}$" + }, + "IPv4Address": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" + }, + "IPv4CIDR": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" + }, + "IPv6Address": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" + }, + "IPv6CIDR": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" + }, + "TCPPort": { + "type": "integer", + "exclusiveMinimum": 1, + "maximum": 65535 + }, + "UDPPort": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "MACAddress": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" + }, + "EmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" + } + ] + }, + "UUID": { + "type": "string", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, + "ISOCountryCode": { + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "SIPURI": { + "type": "string", + "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "TELURI": { + "type": "string", + "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "WGS84LatitudeDecimal": { + "type": "string", + "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" + }, + "WGS84LongitudeDecimal": { + "type": "string", + "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" + }, + "WGS84LatitudeAngular": { + "type": "string", + "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" + }, + "WGS84LongitudeAngular": { + "type": "string", + "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" + }, + "SUPIIMSI": { + "$ref": "#/$defs/IMSI" + }, + "SUPINAI": { + "$ref": "#/$defs/NAI" + }, + "SUCI": { + "type": "string", + "pattern": "^([a-fA-F0-9]{2})*$" + }, + "PEIIMEI": { + "$ref": "#/$defs/IMEI" + }, + "PEIIMEICheckDigit": { + "$ref": "#/$defs/IMEICheckDigit" + }, + "PEIIMEISV": { + "$ref": "#/$defs/IMEISV" + }, + "GPSIMSISDN": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "GPSINAI": { + "$ref": "#/$defs/NAI" + }, + "NAI": { + "type": "string" + }, + "LDID": { + "type": "string", + "pattern": "^([A-Z]{2}-.+-.+)$" + }, + "InternationalizedEmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^.+@.+$" + } + ] + }, + "EUI64": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" + }, + "CGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" + }, + "ECGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" + }, + "NCGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" + }, + "ICCID": { + "type": "string", + "pattern": "^[0-9]{19,20}$" + }, + "IPAddress": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPv4Address": { + "$ref": "#/$defs/IPv4Address" + } + }, + "required": [ + "IPv4Address" + ] + }, + { + "type": "object", + "properties": { + "IPv6Address": { + "$ref": "#/$defs/IPv6Address" + } + }, + "required": [ + "IPv6Address" + ] + } + ] + }, + "IPCIDR": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPv4CIDR": { + "$ref": "#/$defs/IPv4CIDR" + } + }, + "required": [ + "IPv4CIDR" + ] + }, + { + "type": "object", + "properties": { + "IPv6CIDR": { + "$ref": "#/$defs/IPv6CIDR" + } + }, + "required": [ + "IPv6CIDR" + ] + } + ] + }, + "TCPPortRange": { + "type": "object", + "properties": { + "start": { + "$ref": "#/$defs/TCPPort" + }, + "end": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "start", + "end" + ] + }, + "UDPPortRange": { + "type": "object", + "properties": { + "start": { + "$ref": "#/$defs/UDPPort" + }, + "end": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "start", + "end" + ] + }, + "Port": { + "oneOf": [ + { + "type": "object", + "properties": { + "TCPPort": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "TCPPort" + ] + }, + { + "type": "object", + "properties": { + "UDPPort": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "UDPPort" + ] + } + ] + }, + "PortRange": { + "oneOf": [ + { + "type": "object", + "properties": { + "TCPPortRange": { + "$ref": "#/$defs/TCPPortRange" + } + }, + "required": [ + "TCPPortRange" + ] + }, + { + "type": "object", + "properties": { + "UDPPortRange": { + "$ref": "#/$defs/UDPPortRange" + } + }, + "required": [ + "UDPPortRange" + ] + } + ] + }, + "IPAddressPort": { + "type": "object", + "properties": { + "address": { + "$ref": "#/$defs/IPAddress" + }, + "port": { + "$ref": "#/$defs/Port" + } + }, + "required": [ + "address", + "port" + ] + }, + "IPAddressPortRange": { + "type": "object", + "properties": { + "address": { + "$ref": "#/$defs/IPAddress" + }, + "portRange": { + "$ref": "#/$defs/PortRange" + } + }, + "required": [ + "address", + "portRange" + ] + }, + "WGS84CoordinateDecimal": { + "type": "object", + "properties": { + "latitude": { + "$ref": "#/$defs/WGS84LatitudeDecimal" + }, + "longitude": { + "$ref": "#/$defs/WGS84LongitudeDecimal" + } + }, + "required": [ + "latitude", + "longitude" + ] + }, + "WGS84CoordinateAngular": { + "type": "object", + "properties": { + "latitude": { + "$ref": "#/$defs/WGS84LatitudeAngular" + }, + "longitude": { + "$ref": "#/$defs/WGS84LongitudeAngular" + } + }, + "required": [ + "latitude", + "longitude" + ] + } + } +} \ No newline at end of file -- GitLab From 11833a0983831da2344cd9c3fda56122612c5f15 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 18 May 2023 16:04:08 +0100 Subject: [PATCH 02/22] Getting a bit further --- utils/translate/ChoiceMapping.py | 42 ++++++ utils/translate/ComplexTypeMapping.py | 11 ++ utils/translate/SequenceMapping.py | 80 ++++++++++++ utils/translate/SimpleTypeMapping.py | 18 +++ utils/translate/TypeMapping.py | 70 ++++++++++ utils/translate/XSDNativeSimpleTypeMapping.py | 72 +++++++++++ utils/translate/__init__.py | 64 +++++++++ utils/translate_spec.py | 122 ++++++++++++++++++ utils/ts103120_config.json | 14 ++ utils/validate.py | 94 ++++++++++++++ utils/xml_to_json.py | 42 ++++++ 11 files changed, 629 insertions(+) create mode 100644 utils/translate/ChoiceMapping.py create mode 100644 utils/translate/ComplexTypeMapping.py create mode 100644 utils/translate/SequenceMapping.py create mode 100644 utils/translate/SimpleTypeMapping.py create mode 100644 utils/translate/TypeMapping.py create mode 100644 utils/translate/XSDNativeSimpleTypeMapping.py create mode 100644 utils/translate/__init__.py create mode 100644 utils/translate_spec.py create mode 100644 utils/ts103120_config.json create mode 100644 utils/validate.py create mode 100644 utils/xml_to_json.py diff --git a/utils/translate/ChoiceMapping.py b/utils/translate/ChoiceMapping.py new file mode 100644 index 0000000..fecadf8 --- /dev/null +++ b/utils/translate/ChoiceMapping.py @@ -0,0 +1,42 @@ +import logging + +from xmlschema.validators.simple_types import * +from xmlschema.validators.complex_types import * +from xmlschema.validators.groups import * +from xmlschema.validators.facets import * + +from .TypeMapping import TypeMapping +from .ComplexTypeMapping import ComplexTypeMapping + +log = logging.getLogger() + +class ChoiceMapping(ComplexTypeMapping): + @classmethod + def process_choice(cls, choice: XsdGroup, current_ns : str): + if choice.model != 'choice': + raise Exception(f"Wrong group type: {c.model}") + oneOf = [] + for c in choice.iter_model(): + if not (type(c) is XsdElement): + raise Exception (f"Non-element {c} encountered in choice {choice}") + t = TypeMapping.get_type_from_elem(c, current_ns) + oneOf.append({ + "type" : "object", + "properties" : { + c.local_name : t + }, + "required" : [c.local_name] + }) + return oneOf + + def map(self, xst : BaseXsdType): + log.debug(f"Attempting mapping of {xst} to choice") + j = super().map(xst) + if j is None: + log.debug("Not a complex type, giving up") + return None + content = xst.content + if (content.model != 'choice'): + log.debug("Not a choice, giving up") + return None + return { 'oneOf' : ChoiceMapping.process_choice(content, xst.namespaces[''])} diff --git a/utils/translate/ComplexTypeMapping.py b/utils/translate/ComplexTypeMapping.py new file mode 100644 index 0000000..e181909 --- /dev/null +++ b/utils/translate/ComplexTypeMapping.py @@ -0,0 +1,11 @@ +from xmlschema.validators.complex_types import * + +from .TypeMapping import TypeMapping + +class ComplexTypeMapping(TypeMapping): + def map(self, xst: BaseXsdType): + if not (type(xst) is XsdComplexType): + return None + return { + "type" : "object" + } diff --git a/utils/translate/SequenceMapping.py b/utils/translate/SequenceMapping.py new file mode 100644 index 0000000..91db5ea --- /dev/null +++ b/utils/translate/SequenceMapping.py @@ -0,0 +1,80 @@ +import logging + +from xmlschema.validators.simple_types import * +from xmlschema.validators.complex_types import * +from xmlschema.validators.groups import * +from xmlschema.validators.facets import * + +from .TypeMapping import TypeMapping +from .ChoiceMapping import ChoiceMapping +from .ComplexTypeMapping import ComplexTypeMapping + +log = logging.getLogger() + + +class SequenceMapping(ComplexTypeMapping): + def map(self, xst: BaseXsdType): + log.debug(f"Attempting mapping of {xst} to sequence") + j = super().map(xst) + if j is None: + log.debug("Not a complex type, giving up") + return None + content = xst.content + if (content.model != 'sequence'): + log.debug("Not a sequence, giving up") + return None + mapped_type = { + 'type' : 'object', + 'properties' : {}, + 'required' : [] + } + + # Not going to try and do all of this automatically for now + # Only make insert the xsiType parameter + if (xst.base_type): + # mapped_type['__DESCENDENT_OF__'] = TypeMapping.get_ref_for(xst.base_type, xst.namespaces['']) + mapped_type['properties']['@xsi:type'] = { + "type" : "string", + "enum" : xst.name + } + mapped_type['required'].append('@xsi:type') + # if xst.abstract: + # mapped_type['__ABSTRACT__'] = True + # pass + + inner_choice = None + for c in list(content.iter_model()): + log.debug(f"Processing model item {c}") + if type(c) is XsdElement: + if c.effective_max_occurs != 1: + mapped_type['properties'][c.local_name] = { + "type" : "array", + "items" : TypeMapping.get_type_from_elem(c, xst.namespaces['']) + } + if c.effective_max_occurs: + mapped_type['properties'][c.local_name]['maxItems'] = c.effective_max_occurs + if c.effective_min_occurs > 0: + mapped_type['properties'][c.local_name]['minItems'] = c.effective_min_occurs + else: + mapped_type['properties'][c.local_name] = TypeMapping.get_type_from_elem(c, xst.namespaces['']) + if c.effective_min_occurs == 1: + mapped_type['required'].append(c.local_name) + elif type(c) is XsdGroup: + if inner_choice: + raise Exception (f"Second group '{c.local_name}' encountered in {xst}") + if c.model != "choice": + raise Exception (f"Don't know what to do with inner group {c} in {xst} - not a choice") + inner_choice = ChoiceMapping.process_choice(c, xst.namespaces['']) + elif type(c) is XsdAnyElement: + mapped_type = {} + else: + raise Exception(f"Unknown element type {c}") + if (inner_choice): + return { + 'allOf' : [ + mapped_type, + {'oneOf' : inner_choice} + ] + } + else: + return mapped_type diff --git a/utils/translate/SimpleTypeMapping.py b/utils/translate/SimpleTypeMapping.py new file mode 100644 index 0000000..2e60f9c --- /dev/null +++ b/utils/translate/SimpleTypeMapping.py @@ -0,0 +1,18 @@ +import logging + +from xmlschema.validators.complex_types import * +from xmlschema.validators.simple_types import XsdAtomicRestriction + +from .TypeMapping import TypeMapping + +log = logging.getLogger() + +class SimpleTypeMapping(TypeMapping): + def map(self, xst: BaseXsdType): + log.debug(f"Attempting mapping of {xst} to simple type") + if not (type(xst) is XsdAtomicRestriction): + log.debug("Type is not an XsdAtomicRestriction, giving up") + return None + return { + "$ref" : xst.base_type.name + } \ No newline at end of file diff --git a/utils/translate/TypeMapping.py b/utils/translate/TypeMapping.py new file mode 100644 index 0000000..b796e66 --- /dev/null +++ b/utils/translate/TypeMapping.py @@ -0,0 +1,70 @@ +import logging +from abc import ABC, abstractmethod + +from xmlschema.validators.simple_types import * +from xmlschema.validators.complex_types import * +from xmlschema.validators.groups import * +from xmlschema.validators.facets import * + +log = logging.getLogger() + +class TypeMapping(ABC): + ns_to_id_map = {} + + XSD_NS = "http://www.w3.org/2001/XMLSchema" + + XSD_TYPE_MAP = { + "string" : { "type" : "string" }, + "normalizedString" : { "type" : "string", "pattern" : "^[^\r\n\t]*$"}, + "dateTime" : { "type" : "string"}, + "token" : { "type" : "string", "pattern" : "^[^\r\n\t]*$"}, + "anyURI" : { "type" : "string" }, + + "integer" : { "type" : "integer"}, + "nonNegativeInteger" : { "type" : "integer", "minimum" : 0}, + "positiveInteger" : { "type" : "integer", "minimum" : 1}, + + "boolean" : { "type" : "boolean" }, + + "hexBinary" : { "type" : "string", "pattern" : "^([a-fA-F0-9]{2})*$"}, + "base64Binary" : { "type" : "string", "pattern" : "^[-A-Za-z0-9+/]*={0,3}$"}, + + "anyType" : {} + } + + @abstractmethod + def map(self, xst : BaseXsdType): + return None + + @classmethod + def extract_namespace(cls, qname: str): + match = re.search(r'^\{([^\{\}]+)\}(([^\{\}]+))$', qname) + if match is None: + return None + return match.group(1) + + @classmethod + def get_ref_for(cls, xsd_type: XsdType, current_ns : str): + ns = cls.extract_namespace(xsd_type.name) + if ns == current_ns: + return { "$ref" : f"#/$defs/{xsd_type.local_name}" } + else: + mapped_id = cls.ns_to_id_map[ns] + return { "$ref" : f"{mapped_id}#/$defs/{xsd_type.local_name}"} + + @classmethod + def get_type_from_elem(cls, elem: XsdElement, current_ns : str): + ns = cls.extract_namespace(elem.type.name) + if (ns == TypeMapping.XSD_NS): + # this should be an XSD primitive type + return dict(TypeMapping.XSD_TYPE_MAP[elem.type.local_name]) + else: + return cls.get_ref_for(elem.type, current_ns) + + + + + + + + diff --git a/utils/translate/XSDNativeSimpleTypeMapping.py b/utils/translate/XSDNativeSimpleTypeMapping.py new file mode 100644 index 0000000..772ac10 --- /dev/null +++ b/utils/translate/XSDNativeSimpleTypeMapping.py @@ -0,0 +1,72 @@ +import logging + +from xmlschema.validators.simple_types import * +from xmlschema.validators.complex_types import * +from xmlschema.validators.groups import * +from xmlschema.validators.facets import * + +from .TypeMapping import TypeMapping +from .SimpleTypeMapping import SimpleTypeMapping + +log = logging.getLogger() + +class XSDNativeSimpleTypeMapping(SimpleTypeMapping): + + def map(self, xst: BaseXsdType): + log.debug(f"Attempting mapping of {xst} to XSD native type") + j = super().map(xst) + if j is None: + log.debug("Not a simple type, giving up") + return None + + mapped_type = TypeMapping.XSD_TYPE_MAP.get(xst.base_type.local_name) + parent_type = None + + if mapped_type is None: + ns = TypeMapping.extract_namespace(xst.base_type.name) + if ns == XSDNativeSimpleTypeMapping.XSD_NS: + print (xst) + print (xst.base_type) + raise Exception (f"No mapping for xs:{xst.base_type.local_name}") + if len(xst.facets) == 0: + mapped_type = TypeMapping.get_ref_for(xst.base_type, xst.namespaces['']) + else: + parent_type = TypeMapping.get_ref_for(xst.base_type, xst.namespaces['']) + mapped_type = TypeMapping.XSD_TYPE_MAP.get(xst.root_type.local_name) + if mapped_type is None: + raise Exception (f"Could not find mapping for root type xs:{xst.root_type.local_name}") + + mapped_type = dict(mapped_type) + + for k, v in xst.facets.items(): + log.debug(f"Mapping facet {v}") + if type(v) is XsdMaxLengthFacet: + mapped_type['maxLength'] = v.value + continue + if type(v) is XsdMinLengthFacet: + mapped_type['minLength'] = v.value + continue + if type(v) is XsdPatternFacets: + if len(v.regexps) > 1: + raise Exception (f"Multiple patterns given in facet {v} of {xst}") + p = v.regexps[0] + if (not p.startswith('^')) and (not p.endswith('$')): + p = f"^{p}$" + mapped_type['pattern'] = p + continue + if type (v) is XsdMinInclusiveFacet: + mapped_type['minimum'] = v.value + continue + if type (v) is XsdMaxInclusiveFacet: + mapped_type['maximum'] = v.value + continue + if type (v) is XsdMinExclusiveFacet: + mapped_type['exclusiveMinimum'] = v.value + continue + if type (v) is XsdMaxExclusiveFacet: + mapped_type['exclusiveMaximum'] = v.value + continue + raise Exception (f"Unhandled facet {v}") + if parent_type: + return { 'allOf' : [parent_type, mapped_type] } + return mapped_type diff --git a/utils/translate/__init__.py b/utils/translate/__init__.py new file mode 100644 index 0000000..983aa20 --- /dev/null +++ b/utils/translate/__init__.py @@ -0,0 +1,64 @@ +import logging + +from pathlib import Path +from xmlschema import * + +from .TypeMapping import * +from .XSDNativeSimpleTypeMapping import XSDNativeSimpleTypeMapping +from .ChoiceMapping import ChoiceMapping +from .SequenceMapping import SequenceMapping + + +log = logging.getLogger() + +mappings = [ + XSDNativeSimpleTypeMapping(), + ChoiceMapping(), + SequenceMapping(), +] + +def translate_schema (schema_path: str, ns_to_id_map: dict, schema_locations = []): + js = { + "$id" : "?", + "$defs" : {} + } + + logging.info(f"Translating schema {schema_path}") + xs = XMLSchema(schema_path, validation='lax', locations=schema_locations) + logging.info(f"Schema namespace: {xs.target_namespace}" ) + + schema_id = ns_to_id_map[xs.target_namespace] + js['$id'] = schema_id + + TypeMapping.ns_to_id_map = ns_to_id_map + + elementList = [] + for elementName, element in xs.elements.items(): + logging.info(f"Processing element {elementName} : {element}") + elementList.append(TypeMapping.get_ref_for(element.type, element.namespaces[''])) + if len(elementList) == 1: + js['$ref'] = elementList[0]['$ref'] + elif len(elementList) > 1: + js['oneOf'] = elementList + + descendent_types = {} + for type_name, xsd_type in xs.types.items(): + logging.info(f"Processing {type_name} : {xsd_type}") + + j = None + for mapping in mappings: + log.debug("\n----------------------------------------") + j = mapping.map(xsd_type) + if j is None: + continue + else: + break + if j is None: + raise Exception(f"Unmapped type {type_name} ({xsd_type})") + js["$defs"][xsd_type.local_name] = j + logging.debug (f"Mapped {type_name} to {j}") + + print (descendent_types) + return js + + diff --git a/utils/translate_spec.py b/utils/translate_spec.py new file mode 100644 index 0000000..8f89093 --- /dev/null +++ b/utils/translate_spec.py @@ -0,0 +1,122 @@ +import json +import os +import logging +from pathlib import Path +import sys + +from xmlschema import * + +from translate import * + +import jsonschema + +logging.basicConfig(level = logging.INFO) + +def build_schema_locations (paths): + schema_locations = [] + for schemaFile in paths: + try: + xs = XMLSchema(schemaFile, validation='skip') + schema_locations.append((xs.target_namespace, str(Path(schemaFile).resolve()))) + logging.debug (" [ {0} -> {1} ]".format(xs.target_namespace, schemaFile)) + except XMLSchemaParseError as ex: + logging.debug (" [ {0} failed to parse: {1} ]".format(schemaFile, ex)) + return schema_locations + +def get_json(filename): + with open(filename) as f: + j = json.load(f) + return j + +def convert_ns_to_id (ns): + if ns.startswith('http://uri.etsi.org'): + c = ns.split("/") + return f"ts_1{c[3]}{'_' + c[7] if len(c) > 7 else ''}_{c[5]}_{c[6]}" + else: + return ns.replace("http://","").replace("/","_") + +def convert_xsd_to_filename (xsd): + f = Path(xsd) + return f.name.replace('.xsd', '.schema.json') + +if __name__ == "__main__": + if len(sys.argv) < 2: + logging.error ("Usage: translate_spec.py path_to_config_file") + exit(-1) + + config = get_json(sys.argv[1]) + + schema_paths = config['schemas'] + logging.info("Bulding schema locations...") + schema_locations = build_schema_locations(schema_paths) + logging.debug(schema_locations) + + # ns_to_id_map = { + # schema[0]: schema[0].split('/')[-1].lower() + ".json" + # for schema in schema_locations if '03120' in schema[0] + # } | { + # 'http://uri.etsi.org/03280/common/2017/07' : 'etsi103280.json', + # 'http://www.w3.org/2000/09/xmldsig#' : 'xmldsig.json', + # } + logging.info("Constructing XSD NS to JSON Schema ID mapping...") + ns_to_id_map = { schema[0] : convert_ns_to_id(schema[0]) for schema in schema_locations} + logging.debug(ns_to_id_map) + + # # js = translate_schema("103280/TS_103_280.xsd", "103120.json") + # # print(json.dumps(js, indent=2)) + + output_path = Path(config['output']) + if not output_path.exists(): + logging.info("Creating output directory") + os.mkdir(str(output_path)) + + logging.info("Translating schemas...") + json_schemas = {} + for schema_tuple in schema_locations: + logging.info(f" Translating {schema_tuple}") + if 'xmldsig' in (schema_tuple[1]): + # TODO - work out what to do here + logging.info(" Skipping XML Dsig...") + continue + js = translate_schema(schema_tuple[1], ns_to_id_map, schema_locations) + if ns_to_id_map[schema_tuple[0]] == 'core.json': + js['$defs']['HI1Message']['properties'].pop('Signature') + js_path = output_path / convert_xsd_to_filename(schema_tuple[1]) + + # TODO - work out how to do this substitution automatically + # and build the graph of acceptable descendent types + if "Core" in schema_tuple[1]: + js["$defs"]['ConcreteHI1Object'] = { + 'oneOf' : [ + {'$ref' : 'ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject'}, + {'$ref' : 'ts_103120_Task_2020_09#/$defs/LITaskObject'}, + {'$ref' : 'ts_103120_Task_2020_09#/$defs/LDTaskObject'}, + {'$ref' : 'ts_103120_Document_2020_09#/$defs/DocumentObject'}, + {'$ref' : 'ts_103120_Notification_2016_02#/$defs/NotificationObject'}, + {'$ref' : 'ts_103120_Delivery_2019_10#/$defs/DeliveryObject'}, + {'$ref' : 'ts_103120_TrafficPolicy_2022_07#/$defs/TrafficPolicyObject'}, + ] + } + + json_string = json.dumps(js, indent=2) + + if "Core" in schema_tuple[1]: + json_string = json_string.replace('"$ref": "#/$defs/HI1Object"', '"$ref": "#/$defs/ConcreteHI1Object"') + + with open(str(js_path), 'w') as f: + f.write(json_string) + json_schemas[js['$id']] = json.loads(json_string) + + # else: + # json_schemas = {} + # json_path = Path('json/') + # for json_file in json_path.glob("*.json"): + # json_schemas[json_file.name] = get_json(json_file) + + # resolver = jsonschema.RefResolver("", "", json_schemas) + + # instance = get_json("120.json") + # schema = json_schemas['core.json'] + # jsonschema.validate(instance, schema, resolver=resolver) + + # print(json.dumps(js, indent=2)) diff --git a/utils/ts103120_config.json b/utils/ts103120_config.json new file mode 100644 index 0000000..08aadb8 --- /dev/null +++ b/utils/ts103120_config.json @@ -0,0 +1,14 @@ +{ + "schemas" : [ "../103120/schema/ts_103120_Authorisation.xsd", + "../103120/schema/ts_103120_Common.xsd", + "../103120/schema/ts_103120_Core.xsd", + "../103120/schema/ts_103120_Delivery.xsd", + "../103120/schema/ts_103120_Document.xsd", + "../103120/schema/ts_103120_Notification.xsd", + "../103120/schema/ts_103120_Task.xsd", + "../103120/schema/ts_103120_TrafficPolicy.xsd", + "../103280/TS_103_280.xsd", + "../testing/deps/xmldsig/xmldsig-core-schema.xsd" + ], + "output" : "../103120/schema/json/" +} \ No newline at end of file diff --git a/utils/validate.py b/utils/validate.py new file mode 100644 index 0000000..a290ed3 --- /dev/null +++ b/utils/validate.py @@ -0,0 +1,94 @@ +import sys +from jsonschema import validate, RefResolver, Draft202012Validator +import json +from pathlib import Path +import logging +import argparse + + + +# filename = sys.argv[1] + +# def load_json (path): +# with open(path) as f: +# s = json.load(f) +# return s + +# schema_store = {} + +# json_instance = load_json(filename) +# print (json_instance) + +# etsi_schema = load_json('response.schema.json') +# ext_schema = load_json('extended.schema.json') +# ext_ent_schema = load_json("extended_entities.schema.json") +# schema_store = { +# etsi_schema['$id'] : etsi_schema, +# ext_schema['$id'] : ext_schema, +# ext_ent_schema['$id'] : ext_ent_schema +# } + +# resolver = RefResolver(None, referrer=None, store=schema_store) + +# print (etsi_schema) + +# v = Draft202012Validator(ext_schema, resolver=resolver) +# v.validate(json_instance) + +# validate(json_instance, ext_schema) +# print ("OK") + +def handle_uri(u): + print(u) + +def load_json(path : str): + with open(path) as f: + return json.load(f) + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + + parser.add_argument('-s','--schemadir', action="append", help="Directory containing supporting schema files to use for validation") + parser.add_argument('-v', '--verbose', action="count", help="Verbose logging (can be specified multiple times)") + parser.add_argument('schema', help="Primary schema to validate against") + parser.add_argument('filename', help="JSON instance document to validate") + + args = parser.parse_args() + + match args.verbose: + case v if v and v >= 2: + logging.basicConfig(level=logging.DEBUG) + case 1: + logging.basicConfig(level=logging.INFO) + case _: + logging.basicConfig(level=logging.WARNING) + + logging.debug(f"Arguments: {args}") + + instance_doc = load_json(args.filename) + main_schema = load_json(args.schema) + schema_dict = { main_schema['$id'] : main_schema } + + if args.schemadir: + schema_paths = [] + for d in args.schemadir: + schema_paths += [f for f in Path(d).rglob("*.schema.json")] + logging.info(f"Schema files loaded: {schema_paths}") + + schemas_json = [json.load(p.open()) for p in schema_paths] + schema_dict = schema_dict | { s['$id'] : s for s in schemas_json } + + logging.info(f"Schema IDs loaded: {[k for k in schema_dict.keys()]}") + + logging.debug (f"Instance doc: {instance_doc}") + logging.debug (f"Main schema: {main_schema}") + + resolver = RefResolver(None, + referrer=None, + store=schema_dict) + + v = Draft202012Validator(main_schema, resolver=resolver) + + v.validate(instance_doc) + + logging.info("Done") \ No newline at end of file diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py new file mode 100644 index 0000000..2655bd7 --- /dev/null +++ b/utils/xml_to_json.py @@ -0,0 +1,42 @@ +import xmltodict +import sys +from pprint import pprint +import json +from pathlib import Path + + +def extract_prefixes (d): + return { k.split(':')[1]: d[k] for k in d.keys() if k.startswith("@xmlns:") } + +def removePrefixes (o, prefixes): + if not isinstance(o, dict): return + replacements = [] + for k,v in o.items(): + if isinstance(v, dict): + removePrefixes(v, prefixes) + if isinstance(v, list): + for i in v: + removePrefixes(i, prefixes) + if ":" in k: + prefix = k.split(':')[0] + if (prefix) in prefixes: + new_key = k.split(':')[1] + replacements.append( (k, new_key) ) + for r in replacements: + print(r) + o[r[1]] = o.pop(r[0]) + +if __name__ == "__main__": + if len(sys.argv) < 2: + print ("Usage: xml_to_json.py filename") + + p = Path(sys.argv[1]) + s = p.read_text() + print(s) + + d = xmltodict.parse(s)['HI1Message'] + + prefixes = extract_prefixes(d) + removePrefixes(d, prefixes) + + print(d) -- GitLab From 007da2d1b9c1f2fbdb9353626b178aeb1d28012e Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 18 May 2023 16:04:56 +0100 Subject: [PATCH 03/22] Adding new stuff --- 103120/examples/fragment.json | 11 + 103120/examples/fragment.schema.json | 4 + 103120/examples/request1b.json | 43 ++ 103120/examples/request1c.json | 33 + 103120/examples/request1d.json | 47 ++ 103120/schema/json/TS_103_280.schema.json | 389 ++++++++++ .../json/ts_103120_Authorisation.schema.json | 148 ++++ .../schema/json/ts_103120_Common.schema.json | 164 +++++ 103120/schema/json/ts_103120_Core.schema.json | 589 +++++++++++++++ .../json/ts_103120_Delivery.schema.json | 209 ++++++ .../json/ts_103120_Document.schema.json | 148 ++++ .../json/ts_103120_Notification.schema.json | 103 +++ 103120/schema/json/ts_103120_Task.schema.json | 599 +++++++++++++++ .../json/ts_103120_TrafficPolicy.schema.json | 198 +++++ 103120/utils/validate.py | 94 --- 103120/utils/xml_to_json.py | 12 - 103280/TS_103_280.schema.json | 686 +++++++++--------- 17 files changed, 3029 insertions(+), 448 deletions(-) create mode 100644 103120/examples/fragment.json create mode 100644 103120/examples/fragment.schema.json create mode 100644 103120/examples/request1b.json create mode 100644 103120/examples/request1c.json create mode 100644 103120/examples/request1d.json create mode 100644 103120/schema/json/TS_103_280.schema.json create mode 100644 103120/schema/json/ts_103120_Authorisation.schema.json create mode 100644 103120/schema/json/ts_103120_Common.schema.json create mode 100644 103120/schema/json/ts_103120_Core.schema.json create mode 100644 103120/schema/json/ts_103120_Delivery.schema.json create mode 100644 103120/schema/json/ts_103120_Document.schema.json create mode 100644 103120/schema/json/ts_103120_Notification.schema.json create mode 100644 103120/schema/json/ts_103120_Task.schema.json create mode 100644 103120/schema/json/ts_103120_TrafficPolicy.schema.json delete mode 100644 103120/utils/validate.py delete mode 100644 103120/utils/xml_to_json.py diff --git a/103120/examples/fragment.json b/103120/examples/fragment.json new file mode 100644 index 0000000..98a6bfc --- /dev/null +++ b/103120/examples/fragment.json @@ -0,0 +1,11 @@ +{ + "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject", + "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", + "CountryCode": "GB", + "OwnerIdentifier": "ACTOR01", + "AuthorisationReference": "W000001", + "AuthorisationTimespan": { + "StartTime": "2015-09-01T12:00:00Z", + "EndTime": "2015-12-01T12:00:00Z" + } +} \ No newline at end of file diff --git a/103120/examples/fragment.schema.json b/103120/examples/fragment.schema.json new file mode 100644 index 0000000..80124bc --- /dev/null +++ b/103120/examples/fragment.schema.json @@ -0,0 +1,4 @@ +{ + "$id": "ts_103120_Authorisation_2020_09", + "$ref" : "ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject" +} \ No newline at end of file diff --git a/103120/examples/request1b.json b/103120/examples/request1b.json new file mode 100644 index 0000000..82b1a1e --- /dev/null +++ b/103120/examples/request1b.json @@ -0,0 +1,43 @@ +{ + "Header": { + "SenderIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR01" + }, + "ReceiverIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR02" + }, + "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", + "Timestamp": "2015-09-01T12:00:00.000000Z", + "Version": { + "ETSIVersion": "V1.13.1", + "NationalProfileOwner": "XX", + "NationalProfileVersion": "v1.0" + } + }, + "Payload": { + "RequestPayload": { + "ActionRequests": { + "ActionRequest": [ + { + "ActionIdentifier": 0, + "CREATE": { + "HI1Object": { + "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject", + "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "AuthorisationReference": "W000001", + "AuthorisationTimespan": { + "StartTime": "2015-09-01T12:00:00Z", + "EndTime": "2015-12-01T12:00:00Z" + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/103120/examples/request1c.json b/103120/examples/request1c.json new file mode 100644 index 0000000..645f706 --- /dev/null +++ b/103120/examples/request1c.json @@ -0,0 +1,33 @@ +{ + "Header": { + "SenderIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR01" + }, + "ReceiverIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR02" + }, + "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", + "Timestamp": "2015-09-01T12:00:00.000000Z", + "Version": { + "ETSIVersion": "V1.13.1", + "NationalProfileOwner": "XX", + "NationalProfileVersion": "v1.0" + } + }, + "Payload": { + "RequestPayload": { + "ActionRequests": { + "ActionRequest": [ + { + "ActionIdentifier": 1, + "GET": { + "Identifier" : "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/103120/examples/request1d.json b/103120/examples/request1d.json new file mode 100644 index 0000000..bf34f7f --- /dev/null +++ b/103120/examples/request1d.json @@ -0,0 +1,47 @@ +{ + "Header" : { + "SenderIdentifier" : { + "CountryCode" : "XX", + "UniqueIdentifier" : "ACTOR01" + }, + "ReceiverIdentifier" : { + "CountryCode" : "YY", + "UniqueIdentifier" : "ACTOR02" + }, + "TransactionIdentifier" : "c4a09046-61da-485b-83f2-ca12caebf40b", + "Timestamp" : "2022-06-10T15:50:00.000000Z", + "Version" : { + "ETSIVersion" : "V1.11.2", + "NationalProfileOwner" : "NA", + "NationalProfileVersion" : "NA" + } + }, + "Payload" : { + "ResponsePayload" : { + "ActionResponses" : { + "ActionResponse" : [{ + "ActionIdentifier" : 0, + "CREATEResponse" : { + "Identifier" : "f25dec16-927c-433b-959c-1886182cac58", + "HI1Object" : { + "xsiType" : "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject", + "ObjectIdentifier" : "d980e335-d17a-471f-bb40-cddf4457fd6b", + "Reference" : "LIID", + "TargetIdentifier" : { + "TargetIdentifierValues" : { + "TargetIdentifierValue" : [ { + "FormatType" : { + "FormatOwner" : "ETSI", + "FormatName" : "InternationalE164" + }, + "Value" : "447700900123" + } ] + } + } + } + } + }] + } + } + } +} diff --git a/103120/schema/json/TS_103_280.schema.json b/103120/schema/json/TS_103_280.schema.json new file mode 100644 index 0000000..474b3ee --- /dev/null +++ b/103120/schema/json/TS_103_280.schema.json @@ -0,0 +1,389 @@ +{ + "$id": "ts_103280_2017_07", + "$defs": { + "ShortString": { + "type": "string", + "maxLength": 255 + }, + "LongString": { + "type": "string", + "maxLength": 65535 + }, + "LIID": { + "type": "string", + "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" + }, + "UTCDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" + }, + "UTCMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" + }, + "QualifiedDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "QualifiedMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "InternationalE164": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "IMSI": { + "type": "string", + "pattern": "^[0-9]{6,15}$" + }, + "IMEI": { + "type": "string", + "pattern": "^[0-9]{14}$" + }, + "IMEICheckDigit": { + "type": "string", + "pattern": "^[0-9]{15}$" + }, + "IMEISV": { + "type": "string", + "pattern": "^[0-9]{16}$" + }, + "IPv4Address": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" + }, + "IPv4CIDR": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" + }, + "IPv6Address": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" + }, + "IPv6CIDR": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" + }, + "TCPPort": { + "type": "integer", + "exclusiveMinimum": 1, + "maximum": 65535 + }, + "UDPPort": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "MACAddress": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" + }, + "EmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" + } + ] + }, + "UUID": { + "type": "string", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, + "ISOCountryCode": { + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "SIPURI": { + "type": "string", + "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "TELURI": { + "type": "string", + "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "WGS84LatitudeDecimal": { + "type": "string", + "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" + }, + "WGS84LongitudeDecimal": { + "type": "string", + "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" + }, + "WGS84LatitudeAngular": { + "type": "string", + "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" + }, + "WGS84LongitudeAngular": { + "type": "string", + "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" + }, + "SUPIIMSI": { + "$ref": "#/$defs/IMSI" + }, + "SUPINAI": { + "$ref": "#/$defs/NAI" + }, + "SUCI": { + "type": "string", + "pattern": "^([a-fA-F0-9]{2})*$" + }, + "PEIIMEI": { + "$ref": "#/$defs/IMEI" + }, + "PEIIMEICheckDigit": { + "$ref": "#/$defs/IMEICheckDigit" + }, + "PEIIMEISV": { + "$ref": "#/$defs/IMEISV" + }, + "GPSIMSISDN": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "GPSINAI": { + "$ref": "#/$defs/NAI" + }, + "NAI": { + "type": "string" + }, + "LDID": { + "type": "string", + "pattern": "^([A-Z]{2}-.+-.+)$" + }, + "InternationalizedEmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^.+@.+$" + } + ] + }, + "EUI64": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" + }, + "CGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" + }, + "ECGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" + }, + "NCGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" + }, + "ICCID": { + "type": "string", + "pattern": "^[0-9]{19,20}$" + }, + "IPProtocol": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "IPAddress": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPv4Address": { + "$ref": "#/$defs/IPv4Address" + } + }, + "required": [ + "IPv4Address" + ] + }, + { + "type": "object", + "properties": { + "IPv6Address": { + "$ref": "#/$defs/IPv6Address" + } + }, + "required": [ + "IPv6Address" + ] + } + ] + }, + "IPCIDR": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPv4CIDR": { + "$ref": "#/$defs/IPv4CIDR" + } + }, + "required": [ + "IPv4CIDR" + ] + }, + { + "type": "object", + "properties": { + "IPv6CIDR": { + "$ref": "#/$defs/IPv6CIDR" + } + }, + "required": [ + "IPv6CIDR" + ] + } + ] + }, + "TCPPortRange": { + "type": "object", + "properties": { + "start": { + "$ref": "#/$defs/TCPPort" + }, + "end": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "start", + "end" + ] + }, + "UDPPortRange": { + "type": "object", + "properties": { + "start": { + "$ref": "#/$defs/UDPPort" + }, + "end": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "start", + "end" + ] + }, + "Port": { + "oneOf": [ + { + "type": "object", + "properties": { + "TCPPort": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "TCPPort" + ] + }, + { + "type": "object", + "properties": { + "UDPPort": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "UDPPort" + ] + } + ] + }, + "PortRange": { + "oneOf": [ + { + "type": "object", + "properties": { + "TCPPortRange": { + "$ref": "#/$defs/TCPPortRange" + } + }, + "required": [ + "TCPPortRange" + ] + }, + { + "type": "object", + "properties": { + "UDPPortRange": { + "$ref": "#/$defs/UDPPortRange" + } + }, + "required": [ + "UDPPortRange" + ] + } + ] + }, + "IPAddressPort": { + "type": "object", + "properties": { + "address": { + "$ref": "#/$defs/IPAddress" + }, + "port": { + "$ref": "#/$defs/Port" + } + }, + "required": [ + "address", + "port" + ] + }, + "IPAddressPortRange": { + "type": "object", + "properties": { + "address": { + "$ref": "#/$defs/IPAddress" + }, + "portRange": { + "$ref": "#/$defs/PortRange" + } + }, + "required": [ + "address", + "portRange" + ] + }, + "WGS84CoordinateDecimal": { + "type": "object", + "properties": { + "latitude": { + "$ref": "#/$defs/WGS84LatitudeDecimal" + }, + "longitude": { + "$ref": "#/$defs/WGS84LongitudeDecimal" + } + }, + "required": [ + "latitude", + "longitude" + ] + }, + "WGS84CoordinateAngular": { + "type": "object", + "properties": { + "latitude": { + "$ref": "#/$defs/WGS84LatitudeAngular" + }, + "longitude": { + "$ref": "#/$defs/WGS84LongitudeAngular" + } + }, + "required": [ + "latitude", + "longitude" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Authorisation.schema.json b/103120/schema/json/ts_103120_Authorisation.schema.json new file mode 100644 index 0000000..a6f8162 --- /dev/null +++ b/103120/schema/json/ts_103120_Authorisation.schema.json @@ -0,0 +1,148 @@ +{ + "$id": "ts_103120_Authorisation_2020_09", + "$defs": { + "AuthorisationObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "AuthorisationReference": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AuthorisationLegalType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "AuthorisationPriority": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "AuthorisationStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "AuthorisationDesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "AuthorisationTimespan": { + "$ref": "#/$defs/AuthorisationTimespan" + }, + "AuthorisationCSPID": { + "$ref": "#/$defs/AuthorisationCSPID" + }, + "AuthorisationCreationTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "AuthorisationServedTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "AuthorisationTerminationTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "AuthorisationApprovalDetails": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "AuthorisationInvalidReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "AuthorisationFlags": { + "$ref": "#/$defs/AuthorisationFlags" + }, + "AuthorisationManualInformation": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "NationalAuthorisationParameters": { + "$ref": "#/$defs/NationalAuthorisationParameters" + }, + "AuthorisationJurisdiction": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AuthorisationTypeOfCase": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "AuthorisationLegalEntity": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "AuthorisationFlags": { + "type": "object", + "properties": { + "AuthorisationFlag": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + } + }, + "required": [] + }, + "AuthorisationTimespan": { + "type": "object", + "properties": { + "StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "AuthorisationCSPID": { + "type": "object", + "properties": { + "CSPID": { + "type": "array", + "items": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + }, + "minItems": 1 + } + }, + "required": [] + }, + "NationalAuthorisationParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Common.schema.json b/103120/schema/json/ts_103120_Common.schema.json new file mode 100644 index 0000000..2149684 --- /dev/null +++ b/103120/schema/json/ts_103120_Common.schema.json @@ -0,0 +1,164 @@ +{ + "$id": "ts_103120_Common_2016_02", + "$defs": { + "ETSIVersion": { + "allOf": [ + { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^V\\d+\\.\\d+\\.\\d+$" + } + ] + }, + "DictionaryEntry": { + "type": "object", + "properties": { + "Owner": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Name": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Value": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "Owner", + "Name", + "Value" + ] + }, + "ApprovalDetails": { + "type": "object", + "properties": { + "ApprovalType": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ApprovalDescription": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ApprovalReference": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ApproverDetails": { + "$ref": "#/$defs/ApproverDetails" + }, + "ApprovalTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "ApprovalIsEmergency": { + "type": "boolean" + }, + "ApprovalDigitalSignature": { + "$ref": "#/$defs/ApprovalDigitalSignature" + }, + "ApprovalNationalDetails": { + "$ref": "#/$defs/ApprovalNationalDetails" + } + }, + "required": [] + }, + "ApproverDetails": { + "type": "object", + "properties": { + "ApproverName": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ApproverRole": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ApproverIdentity": { + "$ref": "#/$defs/ApproverIdentity" + }, + "ApproverContactDetails": { + "type": "array", + "items": { + "$ref": "#/$defs/ApproverContactDetails" + } + } + }, + "required": [] + }, + "ApproverIdentity": { + "oneOf": [ + { + "type": "object", + "properties": { + "NationalApproverIdentity": { + "$ref": "#/$defs/NationalApproverIdentity" + } + }, + "required": [ + "NationalApproverIdentity" + ] + } + ] + }, + "ApproverContactDetails": { + "type": "object", + "properties": { + "ApproverAlternateName": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ApproverEmailAddress": { + "$ref": "ts_103280_2017_07#/$defs/InternationalizedEmailAddress" + }, + "ApproverPhoneNumber": { + "$ref": "ts_103280_2017_07#/$defs/InternationalE164" + } + }, + "required": [] + }, + "NationalApproverIdentity": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "ApprovalDigitalSignature": { + "oneOf": [ + { + "type": "object", + "properties": { + "NationalDigitalSignature": { + "$ref": "#/$defs/NationalDigitalSignature" + } + }, + "required": [ + "NationalDigitalSignature" + ] + } + ] + }, + "ApprovalNationalDetails": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "NationalDigitalSignature": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Core.schema.json b/103120/schema/json/ts_103120_Core.schema.json new file mode 100644 index 0000000..ee2852b --- /dev/null +++ b/103120/schema/json/ts_103120_Core.schema.json @@ -0,0 +1,589 @@ +{ + "$id": "ts_103120_Core_2019_10", + "$defs": { + "ObjectIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/UUID" + }, + "HI1Message": { + "type": "object", + "properties": { + "Header": { + "$ref": "#/$defs/MessageHeader" + }, + "Payload": { + "$ref": "#/$defs/MessagePayload" + }, + "Signature": { + "$ref": "www.w3.org_2000_09_xmldsig##/$defs/SignatureType" + } + }, + "required": [ + "Header", + "Payload" + ] + }, + "MessageHeader": { + "type": "object", + "properties": { + "SenderIdentifier": { + "$ref": "#/$defs/EndpointID" + }, + "ReceiverIdentifier": { + "$ref": "#/$defs/EndpointID" + }, + "TransactionIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/UUID" + }, + "Timestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedMicrosecondDateTime" + }, + "Version": { + "$ref": "#/$defs/Version" + } + }, + "required": [ + "SenderIdentifier", + "ReceiverIdentifier", + "TransactionIdentifier", + "Timestamp", + "Version" + ] + }, + "Version": { + "type": "object", + "properties": { + "ETSIVersion": { + "$ref": "ts_103120_Common_2016_02#/$defs/ETSIVersion" + }, + "NationalProfileOwner": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "NationalProfileVersion": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "ETSIVersion", + "NationalProfileOwner", + "NationalProfileVersion" + ] + }, + "EndpointID": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "UniqueIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "CountryCode", + "UniqueIdentifier" + ] + }, + "MessagePayload": { + "oneOf": [ + { + "type": "object", + "properties": { + "RequestPayload": { + "$ref": "#/$defs/RequestPayload" + } + }, + "required": [ + "RequestPayload" + ] + }, + { + "type": "object", + "properties": { + "ResponsePayload": { + "$ref": "#/$defs/ResponsePayload" + } + }, + "required": [ + "ResponsePayload" + ] + } + ] + }, + "RequestPayload": { + "type": "object", + "properties": { + "ActionRequests": { + "$ref": "#/$defs/ActionRequests" + } + }, + "required": [ + "ActionRequests" + ] + }, + "ActionRequests": { + "type": "object", + "properties": { + "ActionRequest": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionRequest" + }, + "minItems": 1 + } + }, + "required": [] + }, + "ResponsePayload": { + "oneOf": [ + { + "type": "object", + "properties": { + "ActionResponses": { + "$ref": "#/$defs/ActionResponses" + } + }, + "required": [ + "ActionResponses" + ] + }, + { + "type": "object", + "properties": { + "ErrorInformation": { + "$ref": "#/$defs/ActionUnsuccesfulInformation" + } + }, + "required": [ + "ErrorInformation" + ] + } + ] + }, + "ActionResponses": { + "type": "object", + "properties": { + "ActionResponse": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionResponse" + }, + "minItems": 1 + } + }, + "required": [] + }, + "ActionRequest": { + "allOf": [ + { + "type": "object", + "properties": { + "ActionIdentifier": { + "type": "integer", + "minimum": 0 + } + }, + "required": [ + "ActionIdentifier" + ] + }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "GET": { + "$ref": "#/$defs/GETRequest" + } + }, + "required": [ + "GET" + ] + }, + { + "type": "object", + "properties": { + "CREATE": { + "$ref": "#/$defs/CREATERequest" + } + }, + "required": [ + "CREATE" + ] + }, + { + "type": "object", + "properties": { + "UPDATE": { + "$ref": "#/$defs/UPDATERequest" + } + }, + "required": [ + "UPDATE" + ] + }, + { + "type": "object", + "properties": { + "LIST": { + "$ref": "#/$defs/LISTRequest" + } + }, + "required": [ + "LIST" + ] + }, + { + "type": "object", + "properties": { + "DELIVER": { + "$ref": "#/$defs/DELIVERRequest" + } + }, + "required": [ + "DELIVER" + ] + } + ] + } + ] + }, + "ActionResponse": { + "allOf": [ + { + "type": "object", + "properties": { + "ActionIdentifier": { + "type": "integer", + "minimum": 0 + } + }, + "required": [ + "ActionIdentifier" + ] + }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "GETResponse": { + "$ref": "#/$defs/GETResponse" + } + }, + "required": [ + "GETResponse" + ] + }, + { + "type": "object", + "properties": { + "CREATEResponse": { + "$ref": "#/$defs/CREATEResponse" + } + }, + "required": [ + "CREATEResponse" + ] + }, + { + "type": "object", + "properties": { + "UPDATEResponse": { + "$ref": "#/$defs/UPDATEResponse" + } + }, + "required": [ + "UPDATEResponse" + ] + }, + { + "type": "object", + "properties": { + "LISTResponse": { + "$ref": "#/$defs/LISTResponse" + } + }, + "required": [ + "LISTResponse" + ] + }, + { + "type": "object", + "properties": { + "ErrorInformation": { + "$ref": "#/$defs/ActionUnsuccesfulInformation" + } + }, + "required": [ + "ErrorInformation" + ] + }, + { + "type": "object", + "properties": { + "DELIVERResponse": { + "$ref": "#/$defs/DELIVERResponse" + } + }, + "required": [ + "DELIVERResponse" + ] + } + ] + } + ] + }, + "GETRequest": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + } + }, + "required": [ + "Identifier" + ] + }, + "GETResponse": { + "type": "object", + "properties": { + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "HI1Object" + ] + }, + "CREATERequest": { + "type": "object", + "properties": { + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "HI1Object" + ] + }, + "CREATEResponse": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "Identifier" + ] + }, + "UPDATERequest": { + "type": "object", + "properties": { + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "HI1Object" + ] + }, + "UPDATEResponse": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "Identifier" + ] + }, + "LISTRequest": { + "type": "object", + "properties": { + "ObjectType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "LISTResponse": { + "type": "object", + "properties": { + "ListResponseRecord": { + "type": "array", + "items": { + "$ref": "#/$defs/ListResponseRecord" + } + } + }, + "required": [] + }, + "ListResponseRecord": { + "type": "object", + "properties": { + "ObjectType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [ + "ObjectType", + "Identifier", + "Generation" + ] + }, + "ActionUnsuccesfulInformation": { + "type": "object", + "properties": { + "ErrorCode": { + "type": "integer", + "minimum": 0 + }, + "ErrorDescription": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "ErrorCode", + "ErrorDescription" + ] + }, + "DELIVERRequest": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "Identifier", + "HI1Object" + ] + }, + "DELIVERResponse": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + } + }, + "required": [ + "Identifier" + ] + }, + "HI1Object": { + "type": "object", + "properties": { + "ObjectIdentifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "#/$defs/NationalHandlingParameters" + } + }, + "required": [ + "ObjectIdentifier" + ] + }, + "AssociatedObjects": { + "type": "object", + "properties": { + "AssociatedObject": { + "type": "array", + "items": { + "$ref": "#/$defs/ObjectIdentifier" + } + } + }, + "required": [] + }, + "NationalHandlingParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "ConcreteHI1Object": { + "oneOf": [ + { + "$ref": "ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject" + }, + { + "$ref": "ts_103120_Task_2020_09#/$defs/LITaskObject" + }, + { + "$ref": "ts_103120_Task_2020_09#/$defs/LDTaskObject" + }, + { + "$ref": "ts_103120_Document_2020_09#/$defs/DocumentObject" + }, + { + "$ref": "ts_103120_Notification_2016_02#/$defs/NotificationObject" + }, + { + "$ref": "ts_103120_Delivery_2019_10#/$defs/DeliveryObject" + }, + { + "$ref": "ts_103120_TrafficPolicy_2022_07#/$defs/TrafficPolicyObject" + } + ] + } + }, + "$ref": "#/$defs/HI1Message" +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Delivery.schema.json b/103120/schema/json/ts_103120_Delivery.schema.json new file mode 100644 index 0000000..07ca697 --- /dev/null +++ b/103120/schema/json/ts_103120_Delivery.schema.json @@ -0,0 +1,209 @@ +{ + "$id": "ts_103120_Delivery_2019_10", + "$defs": { + "DeliveryObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2019/10/Delivery}DeliveryObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "Reference": { + "$ref": "#/$defs/Reference" + }, + "DeliveryID": { + "$ref": "ts_103280_2017_07#/$defs/UUID" + }, + "SequenceNumber": { + "type": "integer", + "minimum": 0 + }, + "LastSequence": { + "type": "boolean" + }, + "Manifest": { + "$ref": "#/$defs/Manifest" + }, + "Delivery": { + "$ref": "#/$defs/Delivery" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "Reference": { + "oneOf": [ + { + "type": "object", + "properties": { + "LDID": { + "$ref": "ts_103280_2017_07#/$defs/LDID" + } + }, + "required": [ + "LDID" + ] + }, + { + "type": "object", + "properties": { + "LIID": { + "$ref": "ts_103280_2017_07#/$defs/LIID" + } + }, + "required": [ + "LIID" + ] + } + ] + }, + "Manifest": { + "oneOf": [ + { + "type": "object", + "properties": { + "Specification": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + }, + "required": [ + "Specification" + ] + }, + { + "type": "object", + "properties": { + "ExternalSchema": { + "$ref": "#/$defs/ExternalSchema" + } + }, + "required": [ + "ExternalSchema" + ] + } + ] + }, + "ExternalSchema": { + "type": "object", + "properties": { + "ManifestID": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "ManifestContents": { + "$ref": "#/$defs/ManifestContents" + } + }, + "required": [] + }, + "ManifestContents": { + "oneOf": [ + { + "type": "object", + "properties": { + "BinaryData": { + "$ref": "#/$defs/EmbeddedBinaryData" + } + }, + "required": [ + "BinaryData" + ] + }, + { + "type": "object", + "properties": { + "XMLSchema": { + "$ref": "#/$defs/SchemaContent" + } + }, + "required": [ + "XMLSchema" + ] + } + ] + }, + "SchemaContent": { + "type": "object", + "properties": { + "schema": {} + }, + "required": [ + "schema" + ] + }, + "Delivery": { + "oneOf": [ + { + "type": "object", + "properties": { + "BinaryData": { + "$ref": "#/$defs/EmbeddedBinaryData" + } + }, + "required": [ + "BinaryData" + ] + }, + { + "type": "object", + "properties": { + "XMLData": { + "$ref": "#/$defs/EmbeddedXMLData" + } + }, + "required": [ + "XMLData" + ] + } + ] + }, + "EmbeddedBinaryData": { + "type": "object", + "properties": { + "Data": { + "type": "string", + "pattern": "^[-A-Za-z0-9+/]*={0,3}$" + }, + "ContentType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Checksum": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "ChecksumType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "Data" + ] + }, + "EmbeddedXMLData": {} + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Document.schema.json b/103120/schema/json/ts_103120_Document.schema.json new file mode 100644 index 0000000..fc85e13 --- /dev/null +++ b/103120/schema/json/ts_103120_Document.schema.json @@ -0,0 +1,148 @@ +{ + "$id": "ts_103120_Document_2020_09", + "$defs": { + "DocumentObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Document}DocumentObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "DocumentReference": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "DocumentName": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "DocumentStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "DocumentDesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "DocumentTimespan": { + "$ref": "#/$defs/DocumentTimespan" + }, + "DocumentType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "DocumentProperties": { + "$ref": "#/$defs/DocumentProperties" + }, + "DocumentBody": { + "$ref": "#/$defs/DocumentBody" + }, + "DocumentSignature": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "DocumentInvalidReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "NationalDocumentParameters": { + "$ref": "#/$defs/NationalDocumentParameters" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "DocumentTimespan": { + "type": "object", + "properties": { + "StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "DocumentProperties": { + "type": "object", + "properties": { + "DocumentProperty": { + "type": "array", + "items": { + "$ref": "#/$defs/DocumentProperty" + } + } + }, + "required": [] + }, + "DocumentProperty": { + "type": "object", + "properties": { + "PropertyType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "PropertyValue": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "PropertyType", + "PropertyValue" + ] + }, + "DocumentBody": { + "type": "object", + "properties": { + "Contents": { + "type": "string", + "pattern": "^[-A-Za-z0-9+/]*={0,3}$" + }, + "ContentType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Checksum": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "ChecksumType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [] + }, + "NationalDocumentParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Notification.schema.json b/103120/schema/json/ts_103120_Notification.schema.json new file mode 100644 index 0000000..dffab1a --- /dev/null +++ b/103120/schema/json/ts_103120_Notification.schema.json @@ -0,0 +1,103 @@ +{ + "$id": "ts_103120_Notification_2016_02", + "$defs": { + "NotificationObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2016/02/Notification}NotificationObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "NotificationDetails": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "NotificationType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "NewNotification": { + "type": "boolean" + }, + "NotificationTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "StatusOfAssociatedObjects": { + "$ref": "#/$defs/ListOfAssociatedObjectStatus" + }, + "NationalNotificationParameters": { + "$ref": "#/$defs/NationalNotificationParameters" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "ListOfAssociatedObjectStatus": { + "type": "object", + "properties": { + "AssociatedObjectStatus": { + "type": "array", + "items": { + "$ref": "#/$defs/AssociatedObjectStatus" + }, + "minItems": 1 + } + }, + "required": [] + }, + "AssociatedObjectStatus": { + "type": "object", + "properties": { + "AssociatedObject": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "Status": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "Details": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "AssociatedObject", + "Status" + ] + }, + "NationalNotificationParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Task.schema.json b/103120/schema/json/ts_103120_Task.schema.json new file mode 100644 index 0000000..d19e1ee --- /dev/null +++ b/103120/schema/json/ts_103120_Task.schema.json @@ -0,0 +1,599 @@ +{ + "$id": "ts_103120_Task_2020_09", + "$defs": { + "LITaskObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "Reference": { + "$ref": "ts_103280_2017_07#/$defs/LIID" + }, + "Status": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "DesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "Timespan": { + "$ref": "#/$defs/TaskTimespan" + }, + "TargetIdentifier": { + "$ref": "#/$defs/TargetIdentifier" + }, + "DeliveryType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "DeliveryDetails": { + "$ref": "#/$defs/TaskDeliveryDetails" + }, + "ApprovalDetails": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "CSPID": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + }, + "HandlingProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "InvalidReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "Flags": { + "$ref": "#/$defs/TaskFlags" + }, + "NationalLITaskingParameters": { + "$ref": "#/$defs/NationalLITaskingParameters" + }, + "ListOfTrafficPolicyReferences": { + "$ref": "#/$defs/ListOfTrafficPolicyReferences" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "TaskTimespan": { + "type": "object", + "properties": { + "StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "TerminationTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "ProvisioningTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "DeprovisioningTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "TargetIdentifier": { + "type": "object", + "properties": { + "TargetIdentifierValues": { + "$ref": "#/$defs/TargetIdentifierValues" + }, + "ServiceType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + }, + "required": [] + }, + "TargetIdentifierValues": { + "type": "object", + "properties": { + "TargetIdentifierValue": { + "type": "array", + "items": { + "$ref": "#/$defs/TargetIdentifierValue" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TargetIdentifierValue": { + "type": "object", + "properties": { + "FormatType": { + "$ref": "#/$defs/FormatType" + }, + "Value": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "FormatType", + "Value" + ] + }, + "FormatType": { + "type": "object", + "properties": { + "FormatOwner": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "FormatName": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "FormatOwner", + "FormatName" + ] + }, + "TaskDeliveryDetails": { + "type": "object", + "properties": { + "DeliveryDestination": { + "type": "array", + "items": { + "$ref": "#/$defs/DeliveryDestination" + }, + "minItems": 1 + } + }, + "required": [] + }, + "DeliveryDestination": { + "type": "object", + "properties": { + "DeliveryAddress": { + "$ref": "#/$defs/DeliveryAddress" + }, + "EncryptionDetails": { + "$ref": "#/$defs/NationalEncryptionDetails" + }, + "IRIorCC": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "HandoverFormat": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "DeliveryProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "NationalDeliveryParameters": { + "$ref": "#/$defs/NationalDeliveryParameters" + } + }, + "required": [] + }, + "DeliveryAddress": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPv4Address": { + "$ref": "ts_103280_2017_07#/$defs/IPv4Address" + } + }, + "required": [ + "IPv4Address" + ] + }, + { + "type": "object", + "properties": { + "IPv6Address": { + "$ref": "ts_103280_2017_07#/$defs/IPv6Address" + } + }, + "required": [ + "IPv6Address" + ] + }, + { + "type": "object", + "properties": { + "IPAddressPort": { + "$ref": "ts_103280_2017_07#/$defs/IPAddressPort" + } + }, + "required": [ + "IPAddressPort" + ] + }, + { + "type": "object", + "properties": { + "IPAddressPortRange": { + "$ref": "ts_103280_2017_07#/$defs/IPAddressPortRange" + } + }, + "required": [ + "IPAddressPortRange" + ] + }, + { + "type": "object", + "properties": { + "E164Number": { + "$ref": "ts_103280_2017_07#/$defs/InternationalE164" + } + }, + "required": [ + "E164Number" + ] + }, + { + "type": "object", + "properties": { + "FTPAddress": { + "type": "string" + } + }, + "required": [ + "FTPAddress" + ] + }, + { + "type": "object", + "properties": { + "URL": { + "type": "string" + } + }, + "required": [ + "URL" + ] + }, + { + "type": "object", + "properties": { + "FQDN": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "FQDN" + ] + }, + { + "type": "object", + "properties": { + "EmailAddress": { + "$ref": "ts_103280_2017_07#/$defs/EmailAddress" + } + }, + "required": [ + "EmailAddress" + ] + }, + { + "type": "object", + "properties": { + "EndpointID": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + } + }, + "required": [ + "EndpointID" + ] + }, + { + "type": "object", + "properties": { + "DeliveryInformationID": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "DeliveryInformationID" + ] + } + ] + }, + "TaskFlags": { + "type": "object", + "properties": { + "TaskFlag": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + } + }, + "required": [] + }, + "NationalLITaskingParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "NationalDeliveryParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "NationalEncryptionDetails": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "LDTaskObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LDTaskObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "Reference": { + "$ref": "ts_103280_2017_07#/$defs/LDID" + }, + "Status": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "StatusReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "DesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "RequestDetails": { + "$ref": "#/$defs/RequestDetails" + }, + "DeliveryDetails": { + "$ref": "#/$defs/LDDeliveryDetails" + }, + "ApprovalDetails": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "CSPID": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + }, + "HandlingProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "Flags": { + "$ref": "#/$defs/LDTaskFlags" + }, + "NationalLDTaskingParameters": { + "$ref": "#/$defs/NationalLDTaskingParameters" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "RequestDetails": { + "type": "object", + "properties": { + "Type": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "ObservedTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "ObservedTimes": { + "type": "array", + "items": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "RequestValues": { + "$ref": "#/$defs/RequestValues" + }, + "Subtype": { + "$ref": "#/$defs/RequestSubtype" + } + }, + "required": [] + }, + "RequestValues": { + "type": "object", + "properties": { + "RequestValue": { + "type": "array", + "items": { + "$ref": "#/$defs/RequestValue" + }, + "minItems": 1 + } + }, + "required": [] + }, + "RequestValue": { + "type": "object", + "properties": { + "FormatType": { + "$ref": "#/$defs/FormatType" + }, + "Value": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "FormatType", + "Value" + ] + }, + "RequestSubtype": { + "type": "object", + "properties": { + "RequestSubtype": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "minItems": 1 + } + }, + "required": [] + }, + "LDDeliveryDetails": { + "type": "object", + "properties": { + "LDDeliveryDestination": { + "type": "array", + "items": { + "$ref": "#/$defs/LDDeliveryDestination" + }, + "minItems": 1 + } + }, + "required": [] + }, + "LDDeliveryDestination": { + "type": "object", + "properties": { + "DeliveryAddress": { + "$ref": "#/$defs/DeliveryAddress" + }, + "EncryptionDetails": { + "$ref": "#/$defs/NationalEncryptionDetails" + }, + "LDHandoverFormat": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "LDDeliveryProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "NationalDeliveryParameters": { + "$ref": "#/$defs/NationalDeliveryParameters" + } + }, + "required": [] + }, + "LDTaskFlags": { + "type": "object", + "properties": { + "LDTaskFlag": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + } + }, + "required": [] + }, + "NationalLDTaskingParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "ListOfTrafficPolicyReferences": { + "type": "object", + "properties": { + "TrafficPolicyReference": { + "type": "array", + "items": { + "$ref": "#/$defs/TrafficPolicyReference" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TrafficPolicyReference": { + "type": "object", + "properties": { + "Order": { + "type": "integer", + "minimum": 1 + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + } + }, + "required": [] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_TrafficPolicy.schema.json b/103120/schema/json/ts_103120_TrafficPolicy.schema.json new file mode 100644 index 0000000..53fe978 --- /dev/null +++ b/103120/schema/json/ts_103120_TrafficPolicy.schema.json @@ -0,0 +1,198 @@ +{ + "$id": "ts_103120_TrafficPolicy_2022_07", + "$defs": { + "TrafficPolicyObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficPolicyObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "TrafficPolicyName": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "TrafficRules": { + "$ref": "#/$defs/ListOfTrafficRuleReferences" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "ListOfTrafficRuleReferences": { + "type": "object", + "properties": { + "TrafficRuleReference": { + "type": "array", + "items": { + "$ref": "#/$defs/TrafficRuleReference" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TrafficRuleReference": { + "type": "object", + "properties": { + "Order": { + "type": "integer", + "minimum": 1 + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + } + }, + "required": [ + "Order", + "ObjectIdentifier" + ] + }, + "TrafficRuleObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficRuleObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "Criteria": { + "$ref": "#/$defs/ListOfTrafficCriteria" + }, + "Action": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "ListOfTrafficCriteria": { + "type": "object", + "properties": { + "Criteria": { + "type": "array", + "items": { + "$ref": "#/$defs/TrafficCriteria" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TrafficCriteria": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPPolicyCriteria": { + "$ref": "#/$defs/IPPolicyCriteria" + } + }, + "required": [ + "IPPolicyCriteria" + ] + }, + { + "type": "object", + "properties": { + "MobileAccessPolicyCriteria": { + "$ref": "#/$defs/MobileAccessPolicyCriteria" + } + }, + "required": [ + "MobileAccessPolicyCriteria" + ] + } + ] + }, + "IPPolicyCriteria": { + "type": "object", + "properties": { + "IPProtocol": { + "type": "integer", + "minimum": 0 + }, + "SourceIPRange": { + "$ref": "ts_103280_2017_07#/$defs/IPCIDR" + }, + "SourcePortRange": { + "$ref": "ts_103280_2017_07#/$defs/PortRange" + }, + "DestinationIPRange": { + "$ref": "ts_103280_2017_07#/$defs/IPCIDR" + }, + "DestinationPortRange": { + "$ref": "ts_103280_2017_07#/$defs/PortRange" + }, + "BothDirections": { + "type": "boolean" + } + }, + "required": [] + }, + "MobileAccessPolicyCriteria": { + "type": "object", + "properties": { + "APN": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "DNN": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [] + } + } +} \ No newline at end of file diff --git a/103120/utils/validate.py b/103120/utils/validate.py deleted file mode 100644 index a290ed3..0000000 --- a/103120/utils/validate.py +++ /dev/null @@ -1,94 +0,0 @@ -import sys -from jsonschema import validate, RefResolver, Draft202012Validator -import json -from pathlib import Path -import logging -import argparse - - - -# filename = sys.argv[1] - -# def load_json (path): -# with open(path) as f: -# s = json.load(f) -# return s - -# schema_store = {} - -# json_instance = load_json(filename) -# print (json_instance) - -# etsi_schema = load_json('response.schema.json') -# ext_schema = load_json('extended.schema.json') -# ext_ent_schema = load_json("extended_entities.schema.json") -# schema_store = { -# etsi_schema['$id'] : etsi_schema, -# ext_schema['$id'] : ext_schema, -# ext_ent_schema['$id'] : ext_ent_schema -# } - -# resolver = RefResolver(None, referrer=None, store=schema_store) - -# print (etsi_schema) - -# v = Draft202012Validator(ext_schema, resolver=resolver) -# v.validate(json_instance) - -# validate(json_instance, ext_schema) -# print ("OK") - -def handle_uri(u): - print(u) - -def load_json(path : str): - with open(path) as f: - return json.load(f) - -if __name__ == "__main__": - parser = argparse.ArgumentParser() - - parser.add_argument('-s','--schemadir', action="append", help="Directory containing supporting schema files to use for validation") - parser.add_argument('-v', '--verbose', action="count", help="Verbose logging (can be specified multiple times)") - parser.add_argument('schema', help="Primary schema to validate against") - parser.add_argument('filename', help="JSON instance document to validate") - - args = parser.parse_args() - - match args.verbose: - case v if v and v >= 2: - logging.basicConfig(level=logging.DEBUG) - case 1: - logging.basicConfig(level=logging.INFO) - case _: - logging.basicConfig(level=logging.WARNING) - - logging.debug(f"Arguments: {args}") - - instance_doc = load_json(args.filename) - main_schema = load_json(args.schema) - schema_dict = { main_schema['$id'] : main_schema } - - if args.schemadir: - schema_paths = [] - for d in args.schemadir: - schema_paths += [f for f in Path(d).rglob("*.schema.json")] - logging.info(f"Schema files loaded: {schema_paths}") - - schemas_json = [json.load(p.open()) for p in schema_paths] - schema_dict = schema_dict | { s['$id'] : s for s in schemas_json } - - logging.info(f"Schema IDs loaded: {[k for k in schema_dict.keys()]}") - - logging.debug (f"Instance doc: {instance_doc}") - logging.debug (f"Main schema: {main_schema}") - - resolver = RefResolver(None, - referrer=None, - store=schema_dict) - - v = Draft202012Validator(main_schema, resolver=resolver) - - v.validate(instance_doc) - - logging.info("Done") \ No newline at end of file diff --git a/103120/utils/xml_to_json.py b/103120/utils/xml_to_json.py deleted file mode 100644 index 0615a03..0000000 --- a/103120/utils/xml_to_json.py +++ /dev/null @@ -1,12 +0,0 @@ -import xmltodict -from pprint import pprint -import json - -with open('../examples/request1.xml') as f: - s = f.read() - -d = xmltodict.parse(s) -pprint (d) - -with open('../examples/request.json', 'w') as f2: - f2.write(json.dumps(d)) \ No newline at end of file diff --git a/103280/TS_103_280.schema.json b/103280/TS_103_280.schema.json index 523a1a5..474b3ee 100644 --- a/103280/TS_103_280.schema.json +++ b/103280/TS_103_280.schema.json @@ -1,387 +1,389 @@ -{ - "$id" : "http://etsi.org/temp/280", - "$schema" : "https://json-schema.org/draft/2020-12/schema", - "title" : "ETSI TS 103 280 (temp)", - "description" : "A stubbed version of TS 103 280 definitions (need a CR to 280 for this)", - "$defs": { - "ShortString": { - "type": "string", - "maxLength": 255 - }, - "LongString": { - "type": "string", - "maxLength": 65535 - }, - "LIID": { - "type": "string", - "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" - }, - "UTCDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" - }, - "UTCMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" - }, - "QualifiedDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "QualifiedMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "InternationalE164": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "IMSI": { - "type": "string", - "pattern": "^[0-9]{6,15}$" - }, - "IMEI": { - "type": "string", - "pattern": "^[0-9]{14}$" - }, - "IMEICheckDigit": { - "type": "string", - "pattern": "^[0-9]{15}$" - }, - "IMEISV": { - "type": "string", - "pattern": "^[0-9]{16}$" - }, - "IPv4Address": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" - }, - "IPv4CIDR": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" - }, - "IPv6Address": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" - }, - "IPv6CIDR": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" - }, - "TCPPort": { - "type": "integer", - "exclusiveMinimum": 1, - "maximum": 65535 - }, - "UDPPort": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "MACAddress": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" - }, - "EmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" - } - ] - }, - "UUID": { - "type": "string", - "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" - }, - "ISOCountryCode": { - "type": "string", - "pattern": "^[A-Z]{2}$" - }, - "SIPURI": { - "type": "string", - "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "TELURI": { - "type": "string", - "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "WGS84LatitudeDecimal": { - "type": "string", - "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" - }, - "WGS84LongitudeDecimal": { - "type": "string", - "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" - }, - "WGS84LatitudeAngular": { - "type": "string", - "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" - }, - "WGS84LongitudeAngular": { - "type": "string", - "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" - }, - "SUPIIMSI": { - "$ref": "#/$defs/IMSI" - }, - "SUPINAI": { - "$ref": "#/$defs/NAI" - }, - "SUCI": { - "type": "string", - "pattern": "^([a-fA-F0-9]{2})*$" - }, - "PEIIMEI": { - "$ref": "#/$defs/IMEI" - }, - "PEIIMEICheckDigit": { - "$ref": "#/$defs/IMEICheckDigit" - }, - "PEIIMEISV": { - "$ref": "#/$defs/IMEISV" - }, - "GPSIMSISDN": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "GPSINAI": { - "$ref": "#/$defs/NAI" - }, - "NAI": { - "type": "string" - }, - "LDID": { - "type": "string", - "pattern": "^([A-Z]{2}-.+-.+)$" - }, - "InternationalizedEmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^.+@.+$" - } - ] - }, - "EUI64": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" - }, - "CGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" - }, - "ECGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" - }, - "NCGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" - }, - "ICCID": { - "type": "string", - "pattern": "^[0-9]{19,20}$" - }, - "IPAddress": { - "oneOf": [ - { - "type": "object", - "properties": { - "IPv4Address": { - "$ref": "#/$defs/IPv4Address" - } - }, - "required": [ - "IPv4Address" - ] - }, - { - "type": "object", - "properties": { - "IPv6Address": { - "$ref": "#/$defs/IPv6Address" - } - }, - "required": [ - "IPv6Address" - ] - } - ] - }, - "IPCIDR": { - "oneOf": [ - { - "type": "object", - "properties": { - "IPv4CIDR": { - "$ref": "#/$defs/IPv4CIDR" - } - }, - "required": [ - "IPv4CIDR" - ] - }, - { - "type": "object", - "properties": { - "IPv6CIDR": { - "$ref": "#/$defs/IPv6CIDR" - } - }, - "required": [ - "IPv6CIDR" - ] - } - ] - }, - "TCPPortRange": { +{ + "$id": "ts_103280_2017_07", + "$defs": { + "ShortString": { + "type": "string", + "maxLength": 255 + }, + "LongString": { + "type": "string", + "maxLength": 65535 + }, + "LIID": { + "type": "string", + "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" + }, + "UTCDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" + }, + "UTCMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" + }, + "QualifiedDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "QualifiedMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "InternationalE164": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "IMSI": { + "type": "string", + "pattern": "^[0-9]{6,15}$" + }, + "IMEI": { + "type": "string", + "pattern": "^[0-9]{14}$" + }, + "IMEICheckDigit": { + "type": "string", + "pattern": "^[0-9]{15}$" + }, + "IMEISV": { + "type": "string", + "pattern": "^[0-9]{16}$" + }, + "IPv4Address": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" + }, + "IPv4CIDR": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" + }, + "IPv6Address": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" + }, + "IPv6CIDR": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" + }, + "TCPPort": { + "type": "integer", + "exclusiveMinimum": 1, + "maximum": 65535 + }, + "UDPPort": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "MACAddress": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" + }, + "EmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" + } + ] + }, + "UUID": { + "type": "string", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, + "ISOCountryCode": { + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "SIPURI": { + "type": "string", + "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "TELURI": { + "type": "string", + "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "WGS84LatitudeDecimal": { + "type": "string", + "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" + }, + "WGS84LongitudeDecimal": { + "type": "string", + "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" + }, + "WGS84LatitudeAngular": { + "type": "string", + "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" + }, + "WGS84LongitudeAngular": { + "type": "string", + "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" + }, + "SUPIIMSI": { + "$ref": "#/$defs/IMSI" + }, + "SUPINAI": { + "$ref": "#/$defs/NAI" + }, + "SUCI": { + "type": "string", + "pattern": "^([a-fA-F0-9]{2})*$" + }, + "PEIIMEI": { + "$ref": "#/$defs/IMEI" + }, + "PEIIMEICheckDigit": { + "$ref": "#/$defs/IMEICheckDigit" + }, + "PEIIMEISV": { + "$ref": "#/$defs/IMEISV" + }, + "GPSIMSISDN": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "GPSINAI": { + "$ref": "#/$defs/NAI" + }, + "NAI": { + "type": "string" + }, + "LDID": { + "type": "string", + "pattern": "^([A-Z]{2}-.+-.+)$" + }, + "InternationalizedEmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^.+@.+$" + } + ] + }, + "EUI64": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" + }, + "CGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" + }, + "ECGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" + }, + "NCGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" + }, + "ICCID": { + "type": "string", + "pattern": "^[0-9]{19,20}$" + }, + "IPProtocol": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "IPAddress": { + "oneOf": [ + { "type": "object", "properties": { - "start": { - "$ref": "#/$defs/TCPPort" - }, - "end": { - "$ref": "#/$defs/TCPPort" + "IPv4Address": { + "$ref": "#/$defs/IPv4Address" } }, "required": [ - "start", - "end" + "IPv4Address" ] }, - "UDPPortRange": { + { "type": "object", "properties": { - "start": { - "$ref": "#/$defs/UDPPort" - }, - "end": { - "$ref": "#/$defs/UDPPort" + "IPv6Address": { + "$ref": "#/$defs/IPv6Address" } }, "required": [ - "start", - "end" + "IPv6Address" ] - }, - "Port": { - "oneOf": [ - { - "type": "object", - "properties": { - "TCPPort": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "TCPPort" - ] - }, - { - "type": "object", - "properties": { - "UDPPort": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "UDPPort" - ] + } + ] + }, + "IPCIDR": { + "oneOf": [ + { + "type": "object", + "properties": { + "IPv4CIDR": { + "$ref": "#/$defs/IPv4CIDR" } + }, + "required": [ + "IPv4CIDR" ] }, - "PortRange": { - "oneOf": [ - { - "type": "object", - "properties": { - "TCPPortRange": { - "$ref": "#/$defs/TCPPortRange" - } - }, - "required": [ - "TCPPortRange" - ] - }, - { - "type": "object", - "properties": { - "UDPPortRange": { - "$ref": "#/$defs/UDPPortRange" - } - }, - "required": [ - "UDPPortRange" - ] + { + "type": "object", + "properties": { + "IPv6CIDR": { + "$ref": "#/$defs/IPv6CIDR" } + }, + "required": [ + "IPv6CIDR" ] - }, - "IPAddressPort": { + } + ] + }, + "TCPPortRange": { + "type": "object", + "properties": { + "start": { + "$ref": "#/$defs/TCPPort" + }, + "end": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "start", + "end" + ] + }, + "UDPPortRange": { + "type": "object", + "properties": { + "start": { + "$ref": "#/$defs/UDPPort" + }, + "end": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "start", + "end" + ] + }, + "Port": { + "oneOf": [ + { "type": "object", "properties": { - "address": { - "$ref": "#/$defs/IPAddress" - }, - "port": { - "$ref": "#/$defs/Port" + "TCPPort": { + "$ref": "#/$defs/TCPPort" } }, "required": [ - "address", - "port" + "TCPPort" ] }, - "IPAddressPortRange": { + { "type": "object", "properties": { - "address": { - "$ref": "#/$defs/IPAddress" - }, - "portRange": { - "$ref": "#/$defs/PortRange" + "UDPPort": { + "$ref": "#/$defs/UDPPort" } }, "required": [ - "address", - "portRange" + "UDPPort" ] - }, - "WGS84CoordinateDecimal": { + } + ] + }, + "PortRange": { + "oneOf": [ + { "type": "object", "properties": { - "latitude": { - "$ref": "#/$defs/WGS84LatitudeDecimal" - }, - "longitude": { - "$ref": "#/$defs/WGS84LongitudeDecimal" + "TCPPortRange": { + "$ref": "#/$defs/TCPPortRange" } }, "required": [ - "latitude", - "longitude" + "TCPPortRange" ] }, - "WGS84CoordinateAngular": { + { "type": "object", "properties": { - "latitude": { - "$ref": "#/$defs/WGS84LatitudeAngular" - }, - "longitude": { - "$ref": "#/$defs/WGS84LongitudeAngular" + "UDPPortRange": { + "$ref": "#/$defs/UDPPortRange" } }, "required": [ - "latitude", - "longitude" + "UDPPortRange" ] } - } -} \ No newline at end of file + ] + }, + "IPAddressPort": { + "type": "object", + "properties": { + "address": { + "$ref": "#/$defs/IPAddress" + }, + "port": { + "$ref": "#/$defs/Port" + } + }, + "required": [ + "address", + "port" + ] + }, + "IPAddressPortRange": { + "type": "object", + "properties": { + "address": { + "$ref": "#/$defs/IPAddress" + }, + "portRange": { + "$ref": "#/$defs/PortRange" + } + }, + "required": [ + "address", + "portRange" + ] + }, + "WGS84CoordinateDecimal": { + "type": "object", + "properties": { + "latitude": { + "$ref": "#/$defs/WGS84LatitudeDecimal" + }, + "longitude": { + "$ref": "#/$defs/WGS84LongitudeDecimal" + } + }, + "required": [ + "latitude", + "longitude" + ] + }, + "WGS84CoordinateAngular": { + "type": "object", + "properties": { + "latitude": { + "$ref": "#/$defs/WGS84LatitudeAngular" + }, + "longitude": { + "$ref": "#/$defs/WGS84LongitudeAngular" + } + }, + "required": [ + "latitude", + "longitude" + ] + } + } +} \ No newline at end of file -- GitLab From c51267717890a78ea7ff1261b72cb696ba41e4ff Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 19 May 2023 09:30:54 +0100 Subject: [PATCH 04/22] Preparing to keep namespaces --- utils/xml_to_json.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index 2655bd7..9d51972 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -23,7 +23,6 @@ def removePrefixes (o, prefixes): new_key = k.split(':')[1] replacements.append( (k, new_key) ) for r in replacements: - print(r) o[r[1]] = o.pop(r[0]) if __name__ == "__main__": @@ -32,11 +31,10 @@ if __name__ == "__main__": p = Path(sys.argv[1]) s = p.read_text() - print(s) d = xmltodict.parse(s)['HI1Message'] prefixes = extract_prefixes(d) removePrefixes(d, prefixes) - print(d) + print(json.dumps(d)) -- GitLab From 980c66ee17bfc948a7fed25f5b2cdbe3048b8185 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 23 May 2023 17:50:11 +0100 Subject: [PATCH 05/22] Updates to converter --- utils/xml_to_json.py | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index 9d51972..a85d48a 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -1,8 +1,12 @@ -import xmltodict import sys +import logging from pprint import pprint import json from pathlib import Path +import fileinput + +import xmltodict +import argparse def extract_prefixes (d): @@ -26,12 +30,32 @@ def removePrefixes (o, prefixes): o[r[1]] = o.pop(r[0]) if __name__ == "__main__": - if len(sys.argv) < 2: - print ("Usage: xml_to_json.py filename") + parser = argparse.ArgumentParser() + parser.add_argument('-v', '--verbose', action='count', help='Verbose logging (can be specified multiple times)') + parser.add_argument('-i', '--input', type=argparse.FileType('r'), default=sys.stdin, help="Path to input file (if absent, stdin is used)") + args = parser.parse_args() + + match args.verbose: + case v if v and v >= 2: + logging.basicConfig(level=logging.DEBUG) + case 1: + logging.basicConfig(level=logging.INFO) + case _: + logging.basicConfig(level=logging.WARNING) + + logging.debug(f"Arguments: {args}") - p = Path(sys.argv[1]) - s = p.read_text() + # if (args.input): + # logging.info(f"Reading from {args.input}") + # with open(args.input) as f: + # s = f.read() + # else: + # logging.info(f"Reading from stdin") + # s = sys.stdin.read() + s = args.input.read() + args.input.close() + logging.debug(s) d = xmltodict.parse(s)['HI1Message'] prefixes = extract_prefixes(d) -- GitLab From e38ceae4fecd5af4898da9f76610d6947601da82 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 23 May 2023 17:52:47 +0100 Subject: [PATCH 06/22] Moving 280 schema --- 103120/schema/json/TS_103_280.schema.json | 389 ---------------------- 1 file changed, 389 deletions(-) delete mode 100644 103120/schema/json/TS_103_280.schema.json diff --git a/103120/schema/json/TS_103_280.schema.json b/103120/schema/json/TS_103_280.schema.json deleted file mode 100644 index 474b3ee..0000000 --- a/103120/schema/json/TS_103_280.schema.json +++ /dev/null @@ -1,389 +0,0 @@ -{ - "$id": "ts_103280_2017_07", - "$defs": { - "ShortString": { - "type": "string", - "maxLength": 255 - }, - "LongString": { - "type": "string", - "maxLength": 65535 - }, - "LIID": { - "type": "string", - "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" - }, - "UTCDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" - }, - "UTCMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" - }, - "QualifiedDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "QualifiedMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "InternationalE164": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "IMSI": { - "type": "string", - "pattern": "^[0-9]{6,15}$" - }, - "IMEI": { - "type": "string", - "pattern": "^[0-9]{14}$" - }, - "IMEICheckDigit": { - "type": "string", - "pattern": "^[0-9]{15}$" - }, - "IMEISV": { - "type": "string", - "pattern": "^[0-9]{16}$" - }, - "IPv4Address": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" - }, - "IPv4CIDR": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" - }, - "IPv6Address": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" - }, - "IPv6CIDR": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" - }, - "TCPPort": { - "type": "integer", - "exclusiveMinimum": 1, - "maximum": 65535 - }, - "UDPPort": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "MACAddress": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" - }, - "EmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" - } - ] - }, - "UUID": { - "type": "string", - "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" - }, - "ISOCountryCode": { - "type": "string", - "pattern": "^[A-Z]{2}$" - }, - "SIPURI": { - "type": "string", - "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "TELURI": { - "type": "string", - "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "WGS84LatitudeDecimal": { - "type": "string", - "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" - }, - "WGS84LongitudeDecimal": { - "type": "string", - "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" - }, - "WGS84LatitudeAngular": { - "type": "string", - "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" - }, - "WGS84LongitudeAngular": { - "type": "string", - "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" - }, - "SUPIIMSI": { - "$ref": "#/$defs/IMSI" - }, - "SUPINAI": { - "$ref": "#/$defs/NAI" - }, - "SUCI": { - "type": "string", - "pattern": "^([a-fA-F0-9]{2})*$" - }, - "PEIIMEI": { - "$ref": "#/$defs/IMEI" - }, - "PEIIMEICheckDigit": { - "$ref": "#/$defs/IMEICheckDigit" - }, - "PEIIMEISV": { - "$ref": "#/$defs/IMEISV" - }, - "GPSIMSISDN": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "GPSINAI": { - "$ref": "#/$defs/NAI" - }, - "NAI": { - "type": "string" - }, - "LDID": { - "type": "string", - "pattern": "^([A-Z]{2}-.+-.+)$" - }, - "InternationalizedEmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^.+@.+$" - } - ] - }, - "EUI64": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" - }, - "CGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" - }, - "ECGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" - }, - "NCGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" - }, - "ICCID": { - "type": "string", - "pattern": "^[0-9]{19,20}$" - }, - "IPProtocol": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "IPAddress": { - "oneOf": [ - { - "type": "object", - "properties": { - "IPv4Address": { - "$ref": "#/$defs/IPv4Address" - } - }, - "required": [ - "IPv4Address" - ] - }, - { - "type": "object", - "properties": { - "IPv6Address": { - "$ref": "#/$defs/IPv6Address" - } - }, - "required": [ - "IPv6Address" - ] - } - ] - }, - "IPCIDR": { - "oneOf": [ - { - "type": "object", - "properties": { - "IPv4CIDR": { - "$ref": "#/$defs/IPv4CIDR" - } - }, - "required": [ - "IPv4CIDR" - ] - }, - { - "type": "object", - "properties": { - "IPv6CIDR": { - "$ref": "#/$defs/IPv6CIDR" - } - }, - "required": [ - "IPv6CIDR" - ] - } - ] - }, - "TCPPortRange": { - "type": "object", - "properties": { - "start": { - "$ref": "#/$defs/TCPPort" - }, - "end": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "start", - "end" - ] - }, - "UDPPortRange": { - "type": "object", - "properties": { - "start": { - "$ref": "#/$defs/UDPPort" - }, - "end": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "start", - "end" - ] - }, - "Port": { - "oneOf": [ - { - "type": "object", - "properties": { - "TCPPort": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "TCPPort" - ] - }, - { - "type": "object", - "properties": { - "UDPPort": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "UDPPort" - ] - } - ] - }, - "PortRange": { - "oneOf": [ - { - "type": "object", - "properties": { - "TCPPortRange": { - "$ref": "#/$defs/TCPPortRange" - } - }, - "required": [ - "TCPPortRange" - ] - }, - { - "type": "object", - "properties": { - "UDPPortRange": { - "$ref": "#/$defs/UDPPortRange" - } - }, - "required": [ - "UDPPortRange" - ] - } - ] - }, - "IPAddressPort": { - "type": "object", - "properties": { - "address": { - "$ref": "#/$defs/IPAddress" - }, - "port": { - "$ref": "#/$defs/Port" - } - }, - "required": [ - "address", - "port" - ] - }, - "IPAddressPortRange": { - "type": "object", - "properties": { - "address": { - "$ref": "#/$defs/IPAddress" - }, - "portRange": { - "$ref": "#/$defs/PortRange" - } - }, - "required": [ - "address", - "portRange" - ] - }, - "WGS84CoordinateDecimal": { - "type": "object", - "properties": { - "latitude": { - "$ref": "#/$defs/WGS84LatitudeDecimal" - }, - "longitude": { - "$ref": "#/$defs/WGS84LongitudeDecimal" - } - }, - "required": [ - "latitude", - "longitude" - ] - }, - "WGS84CoordinateAngular": { - "type": "object", - "properties": { - "latitude": { - "$ref": "#/$defs/WGS84LatitudeAngular" - }, - "longitude": { - "$ref": "#/$defs/WGS84LongitudeAngular" - } - }, - "required": [ - "latitude", - "longitude" - ] - } - } -} \ No newline at end of file -- GitLab From bd97198a02c203293f191305a4cfc8f9842aefa8 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 1 Jun 2023 11:46:23 +0100 Subject: [PATCH 07/22] validate can read from stdin --- utils/validate.py | 37 +++---------------------------------- utils/xml_to_json.py | 7 ------- 2 files changed, 3 insertions(+), 41 deletions(-) diff --git a/utils/validate.py b/utils/validate.py index a290ed3..c832631 100644 --- a/utils/validate.py +++ b/utils/validate.py @@ -6,38 +6,6 @@ import logging import argparse - -# filename = sys.argv[1] - -# def load_json (path): -# with open(path) as f: -# s = json.load(f) -# return s - -# schema_store = {} - -# json_instance = load_json(filename) -# print (json_instance) - -# etsi_schema = load_json('response.schema.json') -# ext_schema = load_json('extended.schema.json') -# ext_ent_schema = load_json("extended_entities.schema.json") -# schema_store = { -# etsi_schema['$id'] : etsi_schema, -# ext_schema['$id'] : ext_schema, -# ext_ent_schema['$id'] : ext_ent_schema -# } - -# resolver = RefResolver(None, referrer=None, store=schema_store) - -# print (etsi_schema) - -# v = Draft202012Validator(ext_schema, resolver=resolver) -# v.validate(json_instance) - -# validate(json_instance, ext_schema) -# print ("OK") - def handle_uri(u): print(u) @@ -50,8 +18,8 @@ if __name__ == "__main__": parser.add_argument('-s','--schemadir', action="append", help="Directory containing supporting schema files to use for validation") parser.add_argument('-v', '--verbose', action="count", help="Verbose logging (can be specified multiple times)") + parser.add_argument('-i', '--input', type=argparse.FileType('r'), default=sys.stdin, help="Path to input file (if absent, stdin is used)") parser.add_argument('schema', help="Primary schema to validate against") - parser.add_argument('filename', help="JSON instance document to validate") args = parser.parse_args() @@ -65,7 +33,8 @@ if __name__ == "__main__": logging.debug(f"Arguments: {args}") - instance_doc = load_json(args.filename) + instance_doc = json.loads(args.input.read()) + args.input.close() main_schema = load_json(args.schema) schema_dict = { main_schema['$id'] : main_schema } diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index a85d48a..b8c9e27 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -45,13 +45,6 @@ if __name__ == "__main__": logging.debug(f"Arguments: {args}") - # if (args.input): - # logging.info(f"Reading from {args.input}") - # with open(args.input) as f: - # s = f.read() - # else: - # logging.info(f"Reading from stdin") - # s = sys.stdin.read() s = args.input.read() args.input.close() -- GitLab From d2cedd75ac2a997f77da0f18700131ae48df82e5 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 2 Jun 2023 12:40:35 +0100 Subject: [PATCH 08/22] Validation giving more helpful messages --- 103120/examples/fragment.json | 41 ++++- 103120/examples/fragment.schema.json | 4 +- 103120/examples/request1.json | 154 +++++++++-------- .../json/ts_103120_Authorisation.schema.json | 48 +++--- .../schema/json/ts_103120_Common.schema.json | 54 +++--- 103120/schema/json/ts_103120_Core.schema.json | 3 +- .../json/ts_103120_Delivery.schema.json | 30 ++-- .../json/ts_103120_Document.schema.json | 48 +++--- .../json/ts_103120_Notification.schema.json | 28 +-- 103120/schema/json/ts_103120_Task.schema.json | 160 +++++++++--------- .../json/ts_103120_TrafficPolicy.schema.json | 36 ++-- test1.json | 90 ++++++++++ test2.json | 1 + utils/request.fragment.schema.json | 4 + utils/translate/SequenceMapping.py | 18 +- utils/translate/TypeMapping.py | 2 +- utils/translate/__init__.py | 2 +- utils/translate_spec.py | 57 +++---- utils/ts103120_config.json | 46 +++-- utils/validate.py | 59 ++++++- utils/xml_to_json.py | 16 +- 21 files changed, 548 insertions(+), 353 deletions(-) create mode 100644 test1.json create mode 100644 test2.json create mode 100644 utils/request.fragment.schema.json diff --git a/103120/examples/fragment.json b/103120/examples/fragment.json index 98a6bfc..44f2f88 100644 --- a/103120/examples/fragment.json +++ b/103120/examples/fragment.json @@ -1,11 +1,38 @@ { - "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject", - "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", - "CountryCode": "GB", + "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject", + "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", + "CountryCode": "XX", "OwnerIdentifier": "ACTOR01", - "AuthorisationReference": "W000001", - "AuthorisationTimespan": { - "StartTime": "2015-09-01T12:00:00Z", - "EndTime": "2015-12-01T12:00:00Z" + "AssociatedObjects": { + "AssociatedObject": ["7dbbc880-8750-4d3c-abe7-ea4a17646045"] + }, + "task:Reference": "LIID1", + "task:TargetIdentifier": { + "task:TargetIdentifierValues": { + "task:TargetIdentifierValue": [{ + "task:FormatType": { + "task:FormatOwner": "ETSI", + "task:FormatName": "InternationalE164" + }, + "task:Value": "442079460223" + }] + } + }, + "task:DeliveryType": { + "common:Owner": "ETSI", + "common:Name": "TaskDeliveryType", + "common:Value": "IRIandCC" + }, + "task:DeliveryDetails": { + "task:DeliveryDestination": [{ + "task:DeliveryAddress": { + "IPv4Address": "192.0.2.0" + } + }] + }, + "task:CSPID": { + "CountryCode": "XX", + "UniqueIdentifier": "RECVER01" } + } \ No newline at end of file diff --git a/103120/examples/fragment.schema.json b/103120/examples/fragment.schema.json index 80124bc..afb21c1 100644 --- a/103120/examples/fragment.schema.json +++ b/103120/examples/fragment.schema.json @@ -1,4 +1,4 @@ { - "$id": "ts_103120_Authorisation_2020_09", - "$ref" : "ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject" + "$id": "ts_103120_Task_2020_09", + "$ref" : "#/$defs/RequestPayload" } \ No newline at end of file diff --git a/103120/examples/request1.json b/103120/examples/request1.json index a73501e..d5c90ab 100644 --- a/103120/examples/request1.json +++ b/103120/examples/request1.json @@ -1,91 +1,89 @@ { - "HI1Message": { - "@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", - "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", - "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", - "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", - "Header": { - "SenderIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR01" - }, - "ReceiverIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR02" - }, - "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", - "Timestamp": "2015-09-01T12:00:00.000000Z", - "Version": { - "ETSIVersion": "V1.13.1", - "NationalProfileOwner": "XX", - "NationalProfileVersion": "v1.0" - } + "@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", + "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", + "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", + "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", + "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", + "Header": { + "SenderIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR01" }, - "Payload": { - "RequestPayload": { - "ActionRequests": { - "ActionRequest": [ - { - "ActionIdentifier": "0", - "CREATE": { - "HI1Object": { - "@xsi:type": "auth:AuthorisationObject", - "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "auth:AuthorisationReference": "W000001", - "auth:AuthorisationTimespan": { - "auth:StartTime": "2015-09-01T12:00:00Z", - "auth:EndTime": "2015-12-01T12:00:00Z" - } + "ReceiverIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR02" + }, + "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", + "Timestamp": "2015-09-01T12:00:00.000000Z", + "Version": { + "ETSIVersion": "V1.13.1", + "NationalProfileOwner": "XX", + "NationalProfileVersion": "v1.0" + } + }, + "Payload": { + "RequestPayload": { + "ActionRequests": { + "ActionRequest": [ + { + "ActionIdentifier": 0, + "CREATE": { + "HI1Object": { + "@xsi:type": "auth:AuthorisationObject", + "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "auth:AuthorisationReference": "W000001", + "auth:AuthorisationTimespan": { + "auth:StartTime": "2015-09-01T12:00:00Z", + "auth:EndTime": "2015-12-01T12:00:00Z" } } - }, - { - "ActionIdentifier": "1", - "CREATE": { - "HI1Object": { - "@xsi:type": "task:LITaskObject", - "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "AssociatedObjects": { - "AssociatedObject": "7dbbc880-8750-4d3c-abe7-ea4a17646045" - }, - "task:Reference": "LIID1", - "task:TargetIdentifier": { - "task:TargetIdentifierValues": { - "task:TargetIdentifierValue": { - "task:FormatType": { - "task:FormatOwner": "ETSI", - "task:FormatName": "InternationalE164" - }, - "task:Value": "442079460223" - } + } + }, + { + "ActionIdentifier": 1, + "CREATE": { + "HI1Object": { + "@xsi:type": "task:LITaskObject", + "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "AssociatedObjects": { + "AssociatedObject": "7dbbc880-8750-4d3c-abe7-ea4a17646045" + }, + "task:Reference": "LIID1", + "task:TargetIdentifier": { + "task:TargetIdentifierValues": { + "task:TargetIdentifierValue": { + "task:FormatType": { + "task:FormatOwner": "ETSI", + "task:FormatName": "InternationalE164" + }, + "task:Value": "442079460223" } - }, - "task:DeliveryType": { - "common:Owner": "ETSI", - "common:Name": "TaskDeliveryType", - "common:Value": "IRIandCC" - }, - "task:DeliveryDetails": { - "task:DeliveryDestination": { - "task:DeliveryAddress": { - "task:IPv4Address": "192.0.2.0" - } + } + }, + "task:DeliveryType": { + "common:Owner": "ETSI", + "common:Name": "TaskDeliveryType", + "common:Value": "IRIandCC" + }, + "task:DeliveryDetails": { + "task:DeliveryDestination": { + "task:DeliveryAddress": { + "task:IPv4Address": "192.0.2.0" } - }, - "task:CSPID": { - "CountryCode": "XX", - "UniqueIdentifier": "RECVER01" } + }, + "task:CSPID": { + "CountryCode": "XX", + "UniqueIdentifier": "RECVER01" } } } - ] - } + } + ] } } } diff --git a/103120/schema/json/ts_103120_Authorisation.schema.json b/103120/schema/json/ts_103120_Authorisation.schema.json index a6f8162..1c9a68f 100644 --- a/103120/schema/json/ts_103120_Authorisation.schema.json +++ b/103120/schema/json/ts_103120_Authorisation.schema.json @@ -33,61 +33,61 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "AuthorisationReference": { + "auth:AuthorisationReference": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "AuthorisationLegalType": { + "auth:AuthorisationLegalType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "AuthorisationPriority": { + "auth:AuthorisationPriority": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "AuthorisationStatus": { + "auth:AuthorisationStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "AuthorisationDesiredStatus": { + "auth:AuthorisationDesiredStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "AuthorisationTimespan": { + "auth:AuthorisationTimespan": { "$ref": "#/$defs/AuthorisationTimespan" }, - "AuthorisationCSPID": { + "auth:AuthorisationCSPID": { "$ref": "#/$defs/AuthorisationCSPID" }, - "AuthorisationCreationTimestamp": { + "auth:AuthorisationCreationTimestamp": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "AuthorisationServedTimestamp": { + "auth:AuthorisationServedTimestamp": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "AuthorisationTerminationTimestamp": { + "auth:AuthorisationTerminationTimestamp": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "AuthorisationApprovalDetails": { + "auth:AuthorisationApprovalDetails": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" } }, - "AuthorisationInvalidReason": { + "auth:AuthorisationInvalidReason": { "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" }, - "AuthorisationFlags": { + "auth:AuthorisationFlags": { "$ref": "#/$defs/AuthorisationFlags" }, - "AuthorisationManualInformation": { + "auth:AuthorisationManualInformation": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "NationalAuthorisationParameters": { + "auth:NationalAuthorisationParameters": { "$ref": "#/$defs/NationalAuthorisationParameters" }, - "AuthorisationJurisdiction": { + "auth:AuthorisationJurisdiction": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "AuthorisationTypeOfCase": { + "auth:AuthorisationTypeOfCase": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "AuthorisationLegalEntity": { + "auth:AuthorisationLegalEntity": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, @@ -99,7 +99,7 @@ "AuthorisationFlags": { "type": "object", "properties": { - "AuthorisationFlag": { + "auth:AuthorisationFlag": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" @@ -111,10 +111,10 @@ "AuthorisationTimespan": { "type": "object", "properties": { - "StartTime": { + "auth:StartTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "EndTime": { + "auth:EndTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" } }, @@ -123,7 +123,7 @@ "AuthorisationCSPID": { "type": "object", "properties": { - "CSPID": { + "auth:CSPID": { "type": "array", "items": { "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" @@ -136,12 +136,12 @@ "NationalAuthorisationParameters": { "type": "object", "properties": { - "CountryCode": { + "auth:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "auth:CountryCode" ] } } diff --git a/103120/schema/json/ts_103120_Common.schema.json b/103120/schema/json/ts_103120_Common.schema.json index 2149684..2564e8d 100644 --- a/103120/schema/json/ts_103120_Common.schema.json +++ b/103120/schema/json/ts_103120_Common.schema.json @@ -15,47 +15,47 @@ "DictionaryEntry": { "type": "object", "properties": { - "Owner": { + "common:Owner": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "Name": { + "common:Name": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "Value": { + "common:Value": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, "required": [ - "Owner", - "Name", - "Value" + "common:Owner", + "common:Name", + "common:Value" ] }, "ApprovalDetails": { "type": "object", "properties": { - "ApprovalType": { + "common:ApprovalType": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ApprovalDescription": { + "common:ApprovalDescription": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ApprovalReference": { + "common:ApprovalReference": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ApproverDetails": { + "common:ApproverDetails": { "$ref": "#/$defs/ApproverDetails" }, - "ApprovalTimestamp": { + "common:ApprovalTimestamp": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "ApprovalIsEmergency": { + "common:ApprovalIsEmergency": { "type": "boolean" }, - "ApprovalDigitalSignature": { + "common:ApprovalDigitalSignature": { "$ref": "#/$defs/ApprovalDigitalSignature" }, - "ApprovalNationalDetails": { + "common:ApprovalNationalDetails": { "$ref": "#/$defs/ApprovalNationalDetails" } }, @@ -64,16 +64,16 @@ "ApproverDetails": { "type": "object", "properties": { - "ApproverName": { + "common:ApproverName": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ApproverRole": { + "common:ApproverRole": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ApproverIdentity": { + "common:ApproverIdentity": { "$ref": "#/$defs/ApproverIdentity" }, - "ApproverContactDetails": { + "common:ApproverContactDetails": { "type": "array", "items": { "$ref": "#/$defs/ApproverContactDetails" @@ -100,13 +100,13 @@ "ApproverContactDetails": { "type": "object", "properties": { - "ApproverAlternateName": { + "common:ApproverAlternateName": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ApproverEmailAddress": { + "common:ApproverEmailAddress": { "$ref": "ts_103280_2017_07#/$defs/InternationalizedEmailAddress" }, - "ApproverPhoneNumber": { + "common:ApproverPhoneNumber": { "$ref": "ts_103280_2017_07#/$defs/InternationalE164" } }, @@ -115,12 +115,12 @@ "NationalApproverIdentity": { "type": "object", "properties": { - "CountryCode": { + "common:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "common:CountryCode" ] }, "ApprovalDigitalSignature": { @@ -141,23 +141,23 @@ "ApprovalNationalDetails": { "type": "object", "properties": { - "CountryCode": { + "common:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "common:CountryCode" ] }, "NationalDigitalSignature": { "type": "object", "properties": { - "CountryCode": { + "common:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "common:CountryCode" ] } } diff --git a/103120/schema/json/ts_103120_Core.schema.json b/103120/schema/json/ts_103120_Core.schema.json index ee2852b..f116d31 100644 --- a/103120/schema/json/ts_103120_Core.schema.json +++ b/103120/schema/json/ts_103120_Core.schema.json @@ -13,7 +13,8 @@ "Payload": { "$ref": "#/$defs/MessagePayload" }, - "Signature": { + "Signature": {}, + "xmldsig:Signature": { "$ref": "www.w3.org_2000_09_xmldsig##/$defs/SignatureType" } }, diff --git a/103120/schema/json/ts_103120_Delivery.schema.json b/103120/schema/json/ts_103120_Delivery.schema.json index 07ca697..3d79eb2 100644 --- a/103120/schema/json/ts_103120_Delivery.schema.json +++ b/103120/schema/json/ts_103120_Delivery.schema.json @@ -33,23 +33,23 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "Reference": { + "delivery:Reference": { "$ref": "#/$defs/Reference" }, - "DeliveryID": { + "delivery:DeliveryID": { "$ref": "ts_103280_2017_07#/$defs/UUID" }, - "SequenceNumber": { + "delivery:SequenceNumber": { "type": "integer", "minimum": 0 }, - "LastSequence": { + "delivery:LastSequence": { "type": "boolean" }, - "Manifest": { + "delivery:Manifest": { "$ref": "#/$defs/Manifest" }, - "Delivery": { + "delivery:Delivery": { "$ref": "#/$defs/Delivery" } }, @@ -113,10 +113,10 @@ "ExternalSchema": { "type": "object", "properties": { - "ManifestID": { + "delivery:ManifestID": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "ManifestContents": { + "delivery:ManifestContents": { "$ref": "#/$defs/ManifestContents" } }, @@ -151,10 +151,10 @@ "SchemaContent": { "type": "object", "properties": { - "schema": {} + "delivery:schema": {} }, "required": [ - "schema" + "delivery:schema" ] }, "Delivery": { @@ -186,22 +186,22 @@ "EmbeddedBinaryData": { "type": "object", "properties": { - "Data": { + "delivery:Data": { "type": "string", "pattern": "^[-A-Za-z0-9+/]*={0,3}$" }, - "ContentType": { + "delivery:ContentType": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "Checksum": { + "delivery:Checksum": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "ChecksumType": { + "delivery:ChecksumType": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, "required": [ - "Data" + "delivery:Data" ] }, "EmbeddedXMLData": {} diff --git a/103120/schema/json/ts_103120_Document.schema.json b/103120/schema/json/ts_103120_Document.schema.json index fc85e13..f5b850b 100644 --- a/103120/schema/json/ts_103120_Document.schema.json +++ b/103120/schema/json/ts_103120_Document.schema.json @@ -33,40 +33,40 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "DocumentReference": { + "document:DocumentReference": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "DocumentName": { + "document:DocumentName": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "DocumentStatus": { + "document:DocumentStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "DocumentDesiredStatus": { + "document:DocumentDesiredStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "DocumentTimespan": { + "document:DocumentTimespan": { "$ref": "#/$defs/DocumentTimespan" }, - "DocumentType": { + "document:DocumentType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "DocumentProperties": { + "document:DocumentProperties": { "$ref": "#/$defs/DocumentProperties" }, - "DocumentBody": { + "document:DocumentBody": { "$ref": "#/$defs/DocumentBody" }, - "DocumentSignature": { + "document:DocumentSignature": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" } }, - "DocumentInvalidReason": { + "document:DocumentInvalidReason": { "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" }, - "NationalDocumentParameters": { + "document:NationalDocumentParameters": { "$ref": "#/$defs/NationalDocumentParameters" } }, @@ -78,10 +78,10 @@ "DocumentTimespan": { "type": "object", "properties": { - "StartTime": { + "document:StartTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "EndTime": { + "document:EndTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" } }, @@ -90,7 +90,7 @@ "DocumentProperties": { "type": "object", "properties": { - "DocumentProperty": { + "document:DocumentProperty": { "type": "array", "items": { "$ref": "#/$defs/DocumentProperty" @@ -102,32 +102,32 @@ "DocumentProperty": { "type": "object", "properties": { - "PropertyType": { + "document:PropertyType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "PropertyValue": { + "document:PropertyValue": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "PropertyType", - "PropertyValue" + "document:PropertyType", + "document:PropertyValue" ] }, "DocumentBody": { "type": "object", "properties": { - "Contents": { + "document:Contents": { "type": "string", "pattern": "^[-A-Za-z0-9+/]*={0,3}$" }, - "ContentType": { + "document:ContentType": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "Checksum": { + "document:Checksum": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "ChecksumType": { + "document:ChecksumType": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, @@ -136,12 +136,12 @@ "NationalDocumentParameters": { "type": "object", "properties": { - "CountryCode": { + "document:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "document:CountryCode" ] } } diff --git a/103120/schema/json/ts_103120_Notification.schema.json b/103120/schema/json/ts_103120_Notification.schema.json index dffab1a..84fbf04 100644 --- a/103120/schema/json/ts_103120_Notification.schema.json +++ b/103120/schema/json/ts_103120_Notification.schema.json @@ -33,22 +33,22 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "NotificationDetails": { + "notification:NotificationDetails": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "NotificationType": { + "notification:NotificationType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "NewNotification": { + "notification:NewNotification": { "type": "boolean" }, - "NotificationTimestamp": { + "notification:NotificationTimestamp": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "StatusOfAssociatedObjects": { + "notification:StatusOfAssociatedObjects": { "$ref": "#/$defs/ListOfAssociatedObjectStatus" }, - "NationalNotificationParameters": { + "notification:NationalNotificationParameters": { "$ref": "#/$defs/NationalNotificationParameters" } }, @@ -60,7 +60,7 @@ "ListOfAssociatedObjectStatus": { "type": "object", "properties": { - "AssociatedObjectStatus": { + "notification:AssociatedObjectStatus": { "type": "array", "items": { "$ref": "#/$defs/AssociatedObjectStatus" @@ -73,30 +73,30 @@ "AssociatedObjectStatus": { "type": "object", "properties": { - "AssociatedObject": { + "notification:AssociatedObject": { "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" }, - "Status": { + "notification:Status": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "Details": { + "notification:Details": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "AssociatedObject", - "Status" + "notification:AssociatedObject", + "notification:Status" ] }, "NationalNotificationParameters": { "type": "object", "properties": { - "CountryCode": { + "notification:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "notification:CountryCode" ] } } diff --git a/103120/schema/json/ts_103120_Task.schema.json b/103120/schema/json/ts_103120_Task.schema.json index d19e1ee..6854a61 100644 --- a/103120/schema/json/ts_103120_Task.schema.json +++ b/103120/schema/json/ts_103120_Task.schema.json @@ -33,49 +33,49 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "Reference": { + "task:Reference": { "$ref": "ts_103280_2017_07#/$defs/LIID" }, - "Status": { + "task:Status": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "DesiredStatus": { + "task:DesiredStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "Timespan": { + "task:Timespan": { "$ref": "#/$defs/TaskTimespan" }, - "TargetIdentifier": { + "task:TargetIdentifier": { "$ref": "#/$defs/TargetIdentifier" }, - "DeliveryType": { + "task:DeliveryType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "DeliveryDetails": { + "task:DeliveryDetails": { "$ref": "#/$defs/TaskDeliveryDetails" }, - "ApprovalDetails": { + "task:ApprovalDetails": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" } }, - "CSPID": { + "task:CSPID": { "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" }, - "HandlingProfile": { + "task:HandlingProfile": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "InvalidReason": { + "task:InvalidReason": { "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" }, - "Flags": { + "task:Flags": { "$ref": "#/$defs/TaskFlags" }, - "NationalLITaskingParameters": { + "task:NationalLITaskingParameters": { "$ref": "#/$defs/NationalLITaskingParameters" }, - "ListOfTrafficPolicyReferences": { + "task:ListOfTrafficPolicyReferences": { "$ref": "#/$defs/ListOfTrafficPolicyReferences" } }, @@ -87,19 +87,19 @@ "TaskTimespan": { "type": "object", "properties": { - "StartTime": { + "task:StartTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "EndTime": { + "task:EndTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "TerminationTime": { + "task:TerminationTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "ProvisioningTime": { + "task:ProvisioningTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "DeprovisioningTime": { + "task:DeprovisioningTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" } }, @@ -108,10 +108,10 @@ "TargetIdentifier": { "type": "object", "properties": { - "TargetIdentifierValues": { + "task:TargetIdentifierValues": { "$ref": "#/$defs/TargetIdentifierValues" }, - "ServiceType": { + "task:ServiceType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" } }, @@ -120,7 +120,7 @@ "TargetIdentifierValues": { "type": "object", "properties": { - "TargetIdentifierValue": { + "task:TargetIdentifierValue": { "type": "array", "items": { "$ref": "#/$defs/TargetIdentifierValue" @@ -133,37 +133,37 @@ "TargetIdentifierValue": { "type": "object", "properties": { - "FormatType": { + "task:FormatType": { "$ref": "#/$defs/FormatType" }, - "Value": { + "task:Value": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "FormatType", - "Value" + "task:FormatType", + "task:Value" ] }, "FormatType": { "type": "object", "properties": { - "FormatOwner": { + "task:FormatOwner": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "FormatName": { + "task:FormatName": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, "required": [ - "FormatOwner", - "FormatName" + "task:FormatOwner", + "task:FormatName" ] }, "TaskDeliveryDetails": { "type": "object", "properties": { - "DeliveryDestination": { + "task:DeliveryDestination": { "type": "array", "items": { "$ref": "#/$defs/DeliveryDestination" @@ -176,22 +176,22 @@ "DeliveryDestination": { "type": "object", "properties": { - "DeliveryAddress": { + "task:DeliveryAddress": { "$ref": "#/$defs/DeliveryAddress" }, - "EncryptionDetails": { + "task:EncryptionDetails": { "$ref": "#/$defs/NationalEncryptionDetails" }, - "IRIorCC": { + "task:IRIorCC": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "HandoverFormat": { + "task:HandoverFormat": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "DeliveryProfile": { + "task:DeliveryProfile": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "NationalDeliveryParameters": { + "task:NationalDeliveryParameters": { "$ref": "#/$defs/NationalDeliveryParameters" } }, @@ -325,7 +325,7 @@ "TaskFlags": { "type": "object", "properties": { - "TaskFlag": { + "task:TaskFlag": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" @@ -337,34 +337,34 @@ "NationalLITaskingParameters": { "type": "object", "properties": { - "CountryCode": { + "task:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "task:CountryCode" ] }, "NationalDeliveryParameters": { "type": "object", "properties": { - "CountryCode": { + "task:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "task:CountryCode" ] }, "NationalEncryptionDetails": { "type": "object", "properties": { - "CountryCode": { + "task:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "task:CountryCode" ] }, "LDTaskObject": { @@ -399,40 +399,40 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "Reference": { + "task:Reference": { "$ref": "ts_103280_2017_07#/$defs/LDID" }, - "Status": { + "task:Status": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "StatusReason": { + "task:StatusReason": { "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" }, - "DesiredStatus": { + "task:DesiredStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "RequestDetails": { + "task:RequestDetails": { "$ref": "#/$defs/RequestDetails" }, - "DeliveryDetails": { + "task:DeliveryDetails": { "$ref": "#/$defs/LDDeliveryDetails" }, - "ApprovalDetails": { + "task:ApprovalDetails": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" } }, - "CSPID": { + "task:CSPID": { "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" }, - "HandlingProfile": { + "task:HandlingProfile": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "Flags": { + "task:Flags": { "$ref": "#/$defs/LDTaskFlags" }, - "NationalLDTaskingParameters": { + "task:NationalLDTaskingParameters": { "$ref": "#/$defs/NationalLDTaskingParameters" } }, @@ -444,28 +444,28 @@ "RequestDetails": { "type": "object", "properties": { - "Type": { + "task:Type": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "StartTime": { + "task:StartTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "EndTime": { + "task:EndTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "ObservedTime": { + "task:ObservedTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "ObservedTimes": { + "task:ObservedTimes": { "type": "array", "items": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" } }, - "RequestValues": { + "task:RequestValues": { "$ref": "#/$defs/RequestValues" }, - "Subtype": { + "task:Subtype": { "$ref": "#/$defs/RequestSubtype" } }, @@ -474,7 +474,7 @@ "RequestValues": { "type": "object", "properties": { - "RequestValue": { + "task:RequestValue": { "type": "array", "items": { "$ref": "#/$defs/RequestValue" @@ -487,22 +487,22 @@ "RequestValue": { "type": "object", "properties": { - "FormatType": { + "task:FormatType": { "$ref": "#/$defs/FormatType" }, - "Value": { + "task:Value": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "FormatType", - "Value" + "task:FormatType", + "task:Value" ] }, "RequestSubtype": { "type": "object", "properties": { - "RequestSubtype": { + "task:RequestSubtype": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" @@ -515,7 +515,7 @@ "LDDeliveryDetails": { "type": "object", "properties": { - "LDDeliveryDestination": { + "task:LDDeliveryDestination": { "type": "array", "items": { "$ref": "#/$defs/LDDeliveryDestination" @@ -528,19 +528,19 @@ "LDDeliveryDestination": { "type": "object", "properties": { - "DeliveryAddress": { + "task:DeliveryAddress": { "$ref": "#/$defs/DeliveryAddress" }, - "EncryptionDetails": { + "task:EncryptionDetails": { "$ref": "#/$defs/NationalEncryptionDetails" }, - "LDHandoverFormat": { + "task:LDHandoverFormat": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "LDDeliveryProfile": { + "task:LDDeliveryProfile": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "NationalDeliveryParameters": { + "task:NationalDeliveryParameters": { "$ref": "#/$defs/NationalDeliveryParameters" } }, @@ -549,7 +549,7 @@ "LDTaskFlags": { "type": "object", "properties": { - "LDTaskFlag": { + "task:LDTaskFlag": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" @@ -561,18 +561,18 @@ "NationalLDTaskingParameters": { "type": "object", "properties": { - "CountryCode": { + "task:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "CountryCode" + "task:CountryCode" ] }, "ListOfTrafficPolicyReferences": { "type": "object", "properties": { - "TrafficPolicyReference": { + "task:TrafficPolicyReference": { "type": "array", "items": { "$ref": "#/$defs/TrafficPolicyReference" @@ -585,11 +585,11 @@ "TrafficPolicyReference": { "type": "object", "properties": { - "Order": { + "task:Order": { "type": "integer", "minimum": 1 }, - "ObjectIdentifier": { + "task:ObjectIdentifier": { "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" } }, diff --git a/103120/schema/json/ts_103120_TrafficPolicy.schema.json b/103120/schema/json/ts_103120_TrafficPolicy.schema.json index 53fe978..2bbfc17 100644 --- a/103120/schema/json/ts_103120_TrafficPolicy.schema.json +++ b/103120/schema/json/ts_103120_TrafficPolicy.schema.json @@ -33,10 +33,10 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "TrafficPolicyName": { + "tp:TrafficPolicyName": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "TrafficRules": { + "tp:TrafficRules": { "$ref": "#/$defs/ListOfTrafficRuleReferences" } }, @@ -48,7 +48,7 @@ "ListOfTrafficRuleReferences": { "type": "object", "properties": { - "TrafficRuleReference": { + "tp:TrafficRuleReference": { "type": "array", "items": { "$ref": "#/$defs/TrafficRuleReference" @@ -61,17 +61,17 @@ "TrafficRuleReference": { "type": "object", "properties": { - "Order": { + "tp:Order": { "type": "integer", "minimum": 1 }, - "ObjectIdentifier": { + "tp:ObjectIdentifier": { "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" } }, "required": [ - "Order", - "ObjectIdentifier" + "tp:Order", + "tp:ObjectIdentifier" ] }, "TrafficRuleObject": { @@ -106,10 +106,10 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "Criteria": { + "tp:Criteria": { "$ref": "#/$defs/ListOfTrafficCriteria" }, - "Action": { + "tp:Action": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" } }, @@ -121,7 +121,7 @@ "ListOfTrafficCriteria": { "type": "object", "properties": { - "Criteria": { + "tp:Criteria": { "type": "array", "items": { "$ref": "#/$defs/TrafficCriteria" @@ -160,23 +160,23 @@ "IPPolicyCriteria": { "type": "object", "properties": { - "IPProtocol": { + "tp:IPProtocol": { "type": "integer", "minimum": 0 }, - "SourceIPRange": { + "tp:SourceIPRange": { "$ref": "ts_103280_2017_07#/$defs/IPCIDR" }, - "SourcePortRange": { + "tp:SourcePortRange": { "$ref": "ts_103280_2017_07#/$defs/PortRange" }, - "DestinationIPRange": { + "tp:DestinationIPRange": { "$ref": "ts_103280_2017_07#/$defs/IPCIDR" }, - "DestinationPortRange": { + "tp:DestinationPortRange": { "$ref": "ts_103280_2017_07#/$defs/PortRange" }, - "BothDirections": { + "tp:BothDirections": { "type": "boolean" } }, @@ -185,10 +185,10 @@ "MobileAccessPolicyCriteria": { "type": "object", "properties": { - "APN": { + "tp:APN": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "DNN": { + "tp:DNN": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, diff --git a/test1.json b/test1.json new file mode 100644 index 0000000..6838b7d --- /dev/null +++ b/test1.json @@ -0,0 +1,90 @@ +{ + "@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", + "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", + "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", + "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", + "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", + "Header": { + "SenderIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR01" + }, + "ReceiverIdentifier": { + "CountryCode": "XX", + "UniqueIdentifier": "ACTOR02" + }, + "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", + "Timestamp": "2015-09-01T12:00:00.000000Z", + "Version": { + "ETSIVersion": "V1.13.1", + "NationalProfileOwner": "XX", + "NationalProfileVersion": "v1.0" + } + }, + "Payload": { + "RequestPayload": { + "ActionRequests": { + "ActionRequest": [ + { + "ActionIdentifier": 1, + "CREATE": { + "HI1Object": { + "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject", + "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "auth:AuthorisationReference": "W000001", + "auth:AuthorisationTimespan": { + "auth:StartTime": "2015-09-01T12:00:00Z", + "auth:EndTime": "2015-12-01T12:00:00Z" + } + } + } + }, + { + "ActionIdentifier": 2, + "CREATE": { + "HI1Object": { + "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject", + "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", + "CountryCode": "XX", + "OwnerIdentifier": "ACTOR01", + "AssociatedObjects": { + "AssociatedObject": "7dbbc880-8750-4d3c-abe7-ea4a17646045" + }, + "task:Reference": "LIID1", + "task:TargetIdentifier": { + "task:TargetIdentifierValues": { + "task:TargetIdentifierValue": { + "task:FormatType": { + "task:FormatOwner": "ETSI", + "task:FormatName": "InternationalE164" + }, + "task:Value": "442079460223" + } + } + }, + "task:DeliveryType": { + "common:Owner": "ETSI", + "common:Name": "TaskDeliveryType", + "common:Value": "IRIandCC" + }, + "task:DeliveryDetails": { + "task:DeliveryDestination": { + "task:DeliveryAddress": { + "task:IPv4Address": "192.0.2.0" + } + } + }, + "task:CSPID": { + "CountryCode": "XX", + "UniqueIdentifier": "RECVER01" + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/test2.json b/test2.json new file mode 100644 index 0000000..bf5b94c --- /dev/null +++ b/test2.json @@ -0,0 +1 @@ +{"@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", "Header": {"SenderIdentifier": {"CountryCode": "XX", "UniqueIdentifier": "ACTOR01"}, "ReceiverIdentifier": {"CountryCode": "XX", "UniqueIdentifier": "ACTOR02"}, "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", "Timestamp": "2015-09-01T12:00:00.000000Z", "Version": {"ETSIVersion": "V1.13.1", "NationalProfileOwner": "XX", "NationalProfileVersion": "v1.0"}}, "Payload": {"RequestPayload": {"ActionRequests": {"ActionRequest": [{"ActionIdentifier": "0", "CREATE": {"HI1Object": {"@xsi:type": "auth:AuthorisationObject", "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", "CountryCode": "XX", "OwnerIdentifier": "ACTOR01", "auth:AuthorisationReference": "W000001", "auth:AuthorisationTimespan": {"auth:StartTime": "2015-09-01T12:00:00Z", "auth:EndTime": "2015-12-01T12:00:00Z"}}}}, {"ActionIdentifier": "1", "CREATE": {"HI1Object": {"@xsi:type": "task:LITaskObject", "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", "CountryCode": "XX", "OwnerIdentifier": "ACTOR01", "AssociatedObjects": {"AssociatedObject": ["7dbbc880-8750-4d3c-abe7-ea4a17646045", "7dbbc880-8750-4d3c-abe7-ea4a17646045"]}, "task:Reference": "LIID1", "task:TargetIdentifier": {"task:TargetIdentifierValues": {"task:TargetIdentifierValue": {"task:FormatType": {"task:FormatOwner": "ETSI", "task:FormatName": "InternationalE164"}, "task:Value": "442079460223"}}}, "task:DeliveryType": {"common:Owner": "ETSI", "common:Name": "TaskDeliveryType", "common:Value": "IRIandCC"}, "task:DeliveryDetails": {"task:DeliveryDestination": {"task:DeliveryAddress": {"task:IPv4Address": "192.0.2.0"}}}, "task:CSPID": {"CountryCode": "XX", "UniqueIdentifier": "RECVER01"}}}}]}}}} diff --git a/utils/request.fragment.schema.json b/utils/request.fragment.schema.json new file mode 100644 index 0000000..dc2bb14 --- /dev/null +++ b/utils/request.fragment.schema.json @@ -0,0 +1,4 @@ +{ + "$id": "fragment_request", + "$ref" : "#/$defs/RequestPayload" +} \ No newline at end of file diff --git a/utils/translate/SequenceMapping.py b/utils/translate/SequenceMapping.py index 91db5ea..9fd4d69 100644 --- a/utils/translate/SequenceMapping.py +++ b/utils/translate/SequenceMapping.py @@ -45,23 +45,29 @@ class SequenceMapping(ComplexTypeMapping): inner_choice = None for c in list(content.iter_model()): log.debug(f"Processing model item {c}") + print("Model item -------------") if type(c) is XsdElement: + element_name = c.local_name + if c.target_namespace in self.ns_to_id_map: + ns = self.ns_to_id_map[c.target_namespace] + if 'prefix' in ns: + element_name = ns['prefix'] + ":" + element_name if c.effective_max_occurs != 1: - mapped_type['properties'][c.local_name] = { + mapped_type['properties'][element_name] = { "type" : "array", "items" : TypeMapping.get_type_from_elem(c, xst.namespaces['']) } if c.effective_max_occurs: - mapped_type['properties'][c.local_name]['maxItems'] = c.effective_max_occurs + mapped_type['properties'][element_name]['maxItems'] = c.effective_max_occurs if c.effective_min_occurs > 0: - mapped_type['properties'][c.local_name]['minItems'] = c.effective_min_occurs + mapped_type['properties'][element_name]['minItems'] = c.effective_min_occurs else: - mapped_type['properties'][c.local_name] = TypeMapping.get_type_from_elem(c, xst.namespaces['']) + mapped_type['properties'][element_name] = TypeMapping.get_type_from_elem(c, xst.namespaces['']) if c.effective_min_occurs == 1: - mapped_type['required'].append(c.local_name) + mapped_type['required'].append(element_name) elif type(c) is XsdGroup: if inner_choice: - raise Exception (f"Second group '{c.local_name}' encountered in {xst}") + raise Exception (f"Second group '{element_name}' encountered in {xst}") if c.model != "choice": raise Exception (f"Don't know what to do with inner group {c} in {xst} - not a choice") inner_choice = ChoiceMapping.process_choice(c, xst.namespaces['']) diff --git a/utils/translate/TypeMapping.py b/utils/translate/TypeMapping.py index b796e66..e3daf62 100644 --- a/utils/translate/TypeMapping.py +++ b/utils/translate/TypeMapping.py @@ -50,7 +50,7 @@ class TypeMapping(ABC): return { "$ref" : f"#/$defs/{xsd_type.local_name}" } else: mapped_id = cls.ns_to_id_map[ns] - return { "$ref" : f"{mapped_id}#/$defs/{xsd_type.local_name}"} + return { "$ref" : f"{mapped_id['id']}#/$defs/{xsd_type.local_name}"} @classmethod def get_type_from_elem(cls, elem: XsdElement, current_ns : str): diff --git a/utils/translate/__init__.py b/utils/translate/__init__.py index 983aa20..ba05008 100644 --- a/utils/translate/__init__.py +++ b/utils/translate/__init__.py @@ -27,7 +27,7 @@ def translate_schema (schema_path: str, ns_to_id_map: dict, schema_locations = [ xs = XMLSchema(schema_path, validation='lax', locations=schema_locations) logging.info(f"Schema namespace: {xs.target_namespace}" ) - schema_id = ns_to_id_map[xs.target_namespace] + schema_id = ns_to_id_map[xs.target_namespace]["id"] js['$id'] = schema_id TypeMapping.ns_to_id_map = ns_to_id_map diff --git a/utils/translate_spec.py b/utils/translate_spec.py index 8f89093..54ac5cd 100644 --- a/utils/translate_spec.py +++ b/utils/translate_spec.py @@ -8,8 +8,6 @@ from xmlschema import * from translate import * -import jsonschema - logging.basicConfig(level = logging.INFO) def build_schema_locations (paths): @@ -46,24 +44,22 @@ if __name__ == "__main__": config = get_json(sys.argv[1]) - schema_paths = config['schemas'] - logging.info("Bulding schema locations...") - schema_locations = build_schema_locations(schema_paths) + + logging.info("Bulding ns map...") + ns_map = {} + for location, settings in config['schemas'].items(): + xs = XMLSchema(location, validation='skip') + ns = xs.target_namespace + id = convert_ns_to_id(ns) + ns_map[ns] = { + "id" : id, + "location" : str(Path(location).resolve()) + } | settings + logging.debug(ns_map) + + logging.info("Building schema locations") + schema_locations = [(k, v["location"]) for k,v in ns_map.items()] logging.debug(schema_locations) - - # ns_to_id_map = { - # schema[0]: schema[0].split('/')[-1].lower() + ".json" - # for schema in schema_locations if '03120' in schema[0] - # } | { - # 'http://uri.etsi.org/03280/common/2017/07' : 'etsi103280.json', - # 'http://www.w3.org/2000/09/xmldsig#' : 'xmldsig.json', - # } - logging.info("Constructing XSD NS to JSON Schema ID mapping...") - ns_to_id_map = { schema[0] : convert_ns_to_id(schema[0]) for schema in schema_locations} - logging.debug(ns_to_id_map) - - # # js = translate_schema("103280/TS_103_280.xsd", "103120.json") - # # print(json.dumps(js, indent=2)) output_path = Path(config['output']) if not output_path.exists(): @@ -78,13 +74,14 @@ if __name__ == "__main__": # TODO - work out what to do here logging.info(" Skipping XML Dsig...") continue - js = translate_schema(schema_tuple[1], ns_to_id_map, schema_locations) - if ns_to_id_map[schema_tuple[0]] == 'core.json': + js = translate_schema(schema_tuple[1], ns_map, schema_locations) + + # TODO - Special case, get rid of signature + if ns_map[schema_tuple[0]] == 'core.json': js['$defs']['HI1Message']['properties'].pop('Signature') js_path = output_path / convert_xsd_to_filename(schema_tuple[1]) - # TODO - work out how to do this substitution automatically - # and build the graph of acceptable descendent types + # TODO - Special case - abstract HI1Object if "Core" in schema_tuple[1]: js["$defs"]['ConcreteHI1Object'] = { 'oneOf' : [ @@ -106,17 +103,3 @@ if __name__ == "__main__": with open(str(js_path), 'w') as f: f.write(json_string) json_schemas[js['$id']] = json.loads(json_string) - - # else: - # json_schemas = {} - # json_path = Path('json/') - # for json_file in json_path.glob("*.json"): - # json_schemas[json_file.name] = get_json(json_file) - - # resolver = jsonschema.RefResolver("", "", json_schemas) - - # instance = get_json("120.json") - # schema = json_schemas['core.json'] - # jsonschema.validate(instance, schema, resolver=resolver) - - # print(json.dumps(js, indent=2)) diff --git a/utils/ts103120_config.json b/utils/ts103120_config.json index 08aadb8..ec32171 100644 --- a/utils/ts103120_config.json +++ b/utils/ts103120_config.json @@ -1,14 +1,36 @@ { - "schemas" : [ "../103120/schema/ts_103120_Authorisation.xsd", - "../103120/schema/ts_103120_Common.xsd", - "../103120/schema/ts_103120_Core.xsd", - "../103120/schema/ts_103120_Delivery.xsd", - "../103120/schema/ts_103120_Document.xsd", - "../103120/schema/ts_103120_Notification.xsd", - "../103120/schema/ts_103120_Task.xsd", - "../103120/schema/ts_103120_TrafficPolicy.xsd", - "../103280/TS_103_280.xsd", - "../testing/deps/xmldsig/xmldsig-core-schema.xsd" - ], - "output" : "../103120/schema/json/" + "schemas" : { + "./103120/schema/ts_103120_Authorisation.xsd" : { + "prefix" : "auth" + }, + "./103120/schema/ts_103120_Common.xsd" : { + "prefix" : "common" + }, + "./103120/schema/ts_103120_Core.xsd" : { + }, + "./103120/schema/ts_103120_Delivery.xsd" : { + "prefix" : "delivery" + }, + "./103120/schema/ts_103120_Document.xsd" : { + "prefix" : "document" + }, + "./103120/schema/ts_103120_Notification.xsd" : { + "prefix" : "notification" + }, + "./103120/schema/ts_103120_Task.xsd" : { + "prefix" : "task" + }, + "./103120/schema/ts_103120_TrafficPolicy.xsd" : { + "prefix" : "tp" + }, + "./103280/TS_103_280.xsd" : { + "prefix" : "etsi280", + "skip" : true + }, + "./testing/deps/xmldsig/xmldsig-core-schema.xsd" : { + "prefix" : "xmldsig", + "skip" : true + } + }, + "output" : "./103120/schema/json/" } \ No newline at end of file diff --git a/utils/validate.py b/utils/validate.py index c832631..17070bb 100644 --- a/utils/validate.py +++ b/utils/validate.py @@ -1,5 +1,6 @@ import sys from jsonschema import validate, RefResolver, Draft202012Validator +from jsonschema.exceptions import ValidationError import json from pathlib import Path import logging @@ -41,6 +42,8 @@ if __name__ == "__main__": if args.schemadir: schema_paths = [] for d in args.schemadir: + logging.info(f"Searching {d}") + logging.info(list(Path(d).rglob("*.schema.json"))) schema_paths += [f for f in Path(d).rglob("*.schema.json")] logging.info(f"Schema files loaded: {schema_paths}") @@ -57,7 +60,61 @@ if __name__ == "__main__": store=schema_dict) v = Draft202012Validator(main_schema, resolver=resolver) + try: + v.validate(instance_doc) + except ValidationError as ex: + # Any failure within the Payload element results in a failure against the oneOf constraint in the Payload element + # This isn't terribly helpful in working out what is actually wrong, so in this case we attempt an explicit + # validation against the relevant oneOf alternation to try and get a more useful validation error + if list(ex.schema_path) == ['properties', 'Payload', 'oneOf']: + logging.error ("Error detected validating payload oneOf - attempting explicit validation...") + try: + if 'RequestPayload' in instance_doc['Payload'].keys(): + request_fragment_schema = { "$ref" : "ts_103120_Core_2019_10#/$defs/RequestPayload" } + v = Draft202012Validator(request_fragment_schema, resolver=resolver) + v.validate(instance_doc['Payload']['RequestPayload']) + elif 'ResponsePayload' in instance_doc['Payload'].keys(): + request_fragment_schema = { "$ref" : "ts_103120_Core_2019_10#/$defs/ResponsePayload" } + v = Draft202012Validator(request_fragment_schema, resolver=resolver) + v.validate(instance_doc['Payload']['ResponsePayload']) + else: + logging.error("No RequestPayload or ResponsePayload found - is the Payload malformed?") + raise ex + except ValidationError as ex2: + # Similar to above, this is inner validation to try and get a more useful error in the event + # that something fails the verb oneOf constraint + logging.error("Error detected in ActionRequests/ActionResponses") + error_path = list(ex2.schema_path) + if error_path != ['properties', 'ActionRequests', 'properties', 'ActionRequest', 'items', 'allOf', 1, 'oneOf'] and error_path != ['properties', 'ActionResponses', 'properties', 'ActionResponse', 'items', 'allOf', 1, 'oneOf']: + logging.error("Error not in inner Request/Response allOf/oneOf constraint") + raise ex2 + j = ex2.instance + j.pop('ActionIdentifier') # Remove ActionIdentifier - one remaining key will be the verb + verb = list(j.keys())[0] + message = "Request" if error_path[1] == "ActionRequests" else "Response" + v = Draft202012Validator({"$ref" : f"ts_103120_Core_2019_10#/$defs/{verb}{message}"}, resolver=resolver) + try: + v.validate(j[verb]) + except ValidationError as ex3: + logging.error("Error detected in verb") + # The final level of validation is for the actual HI1Object validation + if list(ex3.schema_path) != ['properties', 'HI1Object', 'oneOf']: + logging.error("Error not inside HI1Object") + raise ex3 + object_type = ex3.instance['@xsi:type'].split('}')[-1] + object_ref = { + 'AuthorisationObject': 'ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject', + 'LITaskObject': 'ts_103120_Task_2020_09#/$defs/LITaskObject', + 'LDTaskObject': 'ts_103120_Task_2020_09#/$defs/LDTaskObject', + 'DocumentObject': 'ts_103120_Document_2020_09#/$defs/DocumentObject', + 'NotificationObject': 'ts_103120_Notification_2016_02#/$defs/NotificationObject', + 'DeliveryObject': 'ts_103120_Delivery_2019_10#/$defs/DeliveryObject', + 'TrafficPolicyObject': 'ts_103120_TrafficPolicy_2022_07#/$defs/TrafficPolicyObject' + }[object_type] + v = Draft202012Validator({"$ref" : object_ref}, resolver=resolver) + v.validate(ex3.instance) + + exit(-1) - v.validate(instance_doc) logging.info("Done") \ No newline at end of file diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index b8c9e27..ac32d7e 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -49,9 +49,15 @@ if __name__ == "__main__": args.input.close() logging.debug(s) - d = xmltodict.parse(s)['HI1Message'] - - prefixes = extract_prefixes(d) - removePrefixes(d, prefixes) + # d = xmltodict.parse(s, + # force_list=('AssociatedObject',) + # )['HI1Message'] - print(json.dumps(d)) + d = xmltodict.parse(s, + force_list=('AssociatedObject',) + )['HI1Message'] + + # prefixes = extract_prefixes(d) + # removePrefixes(d, prefixes) + + print(json.dumps(d, indent=2)) -- GitLab From 2d9c5a45edaf22e7de12936fc700c1ae9113ef3a Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 2 Jun 2023 12:43:01 +0100 Subject: [PATCH 09/22] Tidying up a bit --- test1.json | 90 ------------------------------------------------------ test2.json | 1 - 2 files changed, 91 deletions(-) delete mode 100644 test1.json delete mode 100644 test2.json diff --git a/test1.json b/test1.json deleted file mode 100644 index 6838b7d..0000000 --- a/test1.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", - "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", - "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", - "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", - "Header": { - "SenderIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR01" - }, - "ReceiverIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR02" - }, - "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", - "Timestamp": "2015-09-01T12:00:00.000000Z", - "Version": { - "ETSIVersion": "V1.13.1", - "NationalProfileOwner": "XX", - "NationalProfileVersion": "v1.0" - } - }, - "Payload": { - "RequestPayload": { - "ActionRequests": { - "ActionRequest": [ - { - "ActionIdentifier": 1, - "CREATE": { - "HI1Object": { - "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject", - "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "auth:AuthorisationReference": "W000001", - "auth:AuthorisationTimespan": { - "auth:StartTime": "2015-09-01T12:00:00Z", - "auth:EndTime": "2015-12-01T12:00:00Z" - } - } - } - }, - { - "ActionIdentifier": 2, - "CREATE": { - "HI1Object": { - "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject", - "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "AssociatedObjects": { - "AssociatedObject": "7dbbc880-8750-4d3c-abe7-ea4a17646045" - }, - "task:Reference": "LIID1", - "task:TargetIdentifier": { - "task:TargetIdentifierValues": { - "task:TargetIdentifierValue": { - "task:FormatType": { - "task:FormatOwner": "ETSI", - "task:FormatName": "InternationalE164" - }, - "task:Value": "442079460223" - } - } - }, - "task:DeliveryType": { - "common:Owner": "ETSI", - "common:Name": "TaskDeliveryType", - "common:Value": "IRIandCC" - }, - "task:DeliveryDetails": { - "task:DeliveryDestination": { - "task:DeliveryAddress": { - "task:IPv4Address": "192.0.2.0" - } - } - }, - "task:CSPID": { - "CountryCode": "XX", - "UniqueIdentifier": "RECVER01" - } - } - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/test2.json b/test2.json deleted file mode 100644 index bf5b94c..0000000 --- a/test2.json +++ /dev/null @@ -1 +0,0 @@ -{"@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", "Header": {"SenderIdentifier": {"CountryCode": "XX", "UniqueIdentifier": "ACTOR01"}, "ReceiverIdentifier": {"CountryCode": "XX", "UniqueIdentifier": "ACTOR02"}, "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", "Timestamp": "2015-09-01T12:00:00.000000Z", "Version": {"ETSIVersion": "V1.13.1", "NationalProfileOwner": "XX", "NationalProfileVersion": "v1.0"}}, "Payload": {"RequestPayload": {"ActionRequests": {"ActionRequest": [{"ActionIdentifier": "0", "CREATE": {"HI1Object": {"@xsi:type": "auth:AuthorisationObject", "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", "CountryCode": "XX", "OwnerIdentifier": "ACTOR01", "auth:AuthorisationReference": "W000001", "auth:AuthorisationTimespan": {"auth:StartTime": "2015-09-01T12:00:00Z", "auth:EndTime": "2015-12-01T12:00:00Z"}}}}, {"ActionIdentifier": "1", "CREATE": {"HI1Object": {"@xsi:type": "task:LITaskObject", "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", "CountryCode": "XX", "OwnerIdentifier": "ACTOR01", "AssociatedObjects": {"AssociatedObject": ["7dbbc880-8750-4d3c-abe7-ea4a17646045", "7dbbc880-8750-4d3c-abe7-ea4a17646045"]}, "task:Reference": "LIID1", "task:TargetIdentifier": {"task:TargetIdentifierValues": {"task:TargetIdentifierValue": {"task:FormatType": {"task:FormatOwner": "ETSI", "task:FormatName": "InternationalE164"}, "task:Value": "442079460223"}}}, "task:DeliveryType": {"common:Owner": "ETSI", "common:Name": "TaskDeliveryType", "common:Value": "IRIandCC"}, "task:DeliveryDetails": {"task:DeliveryDestination": {"task:DeliveryAddress": {"task:IPv4Address": "192.0.2.0"}}}, "task:CSPID": {"CountryCode": "XX", "UniqueIdentifier": "RECVER01"}}}}]}}}} -- GitLab From 81aab74ef0a9d5c214ddd057be4f3f3447706fe9 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 2 Jun 2023 14:07:08 +0100 Subject: [PATCH 10/22] Fixing namespace qualifiers for choice --- 103120/schema/json/TS_103_280.schema.json | 389 ++++++++++++++++++ .../schema/json/ts_103120_Common.schema.json | 8 +- .../json/ts_103120_Delivery.schema.json | 32 +- 103120/schema/json/ts_103120_Task.schema.json | 44 +- .../json/ts_103120_TrafficPolicy.schema.json | 8 +- utils/translate/ChoiceMapping.py | 13 +- utils/translate/SequenceMapping.py | 2 +- utils/xml_to_json.py | 60 ++- 8 files changed, 501 insertions(+), 55 deletions(-) create mode 100644 103120/schema/json/TS_103_280.schema.json diff --git a/103120/schema/json/TS_103_280.schema.json b/103120/schema/json/TS_103_280.schema.json new file mode 100644 index 0000000..02cd078 --- /dev/null +++ b/103120/schema/json/TS_103_280.schema.json @@ -0,0 +1,389 @@ +{ + "$id": "ts_103280_2017_07", + "$defs": { + "ShortString": { + "type": "string", + "maxLength": 255 + }, + "LongString": { + "type": "string", + "maxLength": 65535 + }, + "LIID": { + "type": "string", + "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" + }, + "UTCDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" + }, + "UTCMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" + }, + "QualifiedDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "QualifiedMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "InternationalE164": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "IMSI": { + "type": "string", + "pattern": "^[0-9]{6,15}$" + }, + "IMEI": { + "type": "string", + "pattern": "^[0-9]{14}$" + }, + "IMEICheckDigit": { + "type": "string", + "pattern": "^[0-9]{15}$" + }, + "IMEISV": { + "type": "string", + "pattern": "^[0-9]{16}$" + }, + "IPv4Address": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" + }, + "IPv4CIDR": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" + }, + "IPv6Address": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" + }, + "IPv6CIDR": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" + }, + "TCPPort": { + "type": "integer", + "exclusiveMinimum": 1, + "maximum": 65535 + }, + "UDPPort": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "MACAddress": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" + }, + "EmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" + } + ] + }, + "UUID": { + "type": "string", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, + "ISOCountryCode": { + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "SIPURI": { + "type": "string", + "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "TELURI": { + "type": "string", + "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "WGS84LatitudeDecimal": { + "type": "string", + "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" + }, + "WGS84LongitudeDecimal": { + "type": "string", + "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" + }, + "WGS84LatitudeAngular": { + "type": "string", + "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" + }, + "WGS84LongitudeAngular": { + "type": "string", + "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" + }, + "SUPIIMSI": { + "$ref": "#/$defs/IMSI" + }, + "SUPINAI": { + "$ref": "#/$defs/NAI" + }, + "SUCI": { + "type": "string", + "pattern": "^([a-fA-F0-9]{2})*$" + }, + "PEIIMEI": { + "$ref": "#/$defs/IMEI" + }, + "PEIIMEICheckDigit": { + "$ref": "#/$defs/IMEICheckDigit" + }, + "PEIIMEISV": { + "$ref": "#/$defs/IMEISV" + }, + "GPSIMSISDN": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "GPSINAI": { + "$ref": "#/$defs/NAI" + }, + "NAI": { + "type": "string" + }, + "LDID": { + "type": "string", + "pattern": "^([A-Z]{2}-.+-.+)$" + }, + "InternationalizedEmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^.+@.+$" + } + ] + }, + "EUI64": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" + }, + "CGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" + }, + "ECGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" + }, + "NCGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" + }, + "ICCID": { + "type": "string", + "pattern": "^[0-9]{19,20}$" + }, + "IPProtocol": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "IPAddress": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:IPv4Address": { + "$ref": "#/$defs/IPv4Address" + } + }, + "required": [ + "etsi280:IPv4Address" + ] + }, + { + "type": "object", + "properties": { + "etsi280:IPv6Address": { + "$ref": "#/$defs/IPv6Address" + } + }, + "required": [ + "etsi280:IPv6Address" + ] + } + ] + }, + "IPCIDR": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:IPv4CIDR": { + "$ref": "#/$defs/IPv4CIDR" + } + }, + "required": [ + "etsi280:IPv4CIDR" + ] + }, + { + "type": "object", + "properties": { + "etsi280:IPv6CIDR": { + "$ref": "#/$defs/IPv6CIDR" + } + }, + "required": [ + "etsi280:IPv6CIDR" + ] + } + ] + }, + "TCPPortRange": { + "type": "object", + "properties": { + "etsi280:start": { + "$ref": "#/$defs/TCPPort" + }, + "etsi280:end": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "etsi280:start", + "etsi280:end" + ] + }, + "UDPPortRange": { + "type": "object", + "properties": { + "etsi280:start": { + "$ref": "#/$defs/UDPPort" + }, + "etsi280:end": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "etsi280:start", + "etsi280:end" + ] + }, + "Port": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:TCPPort": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "etsi280:TCPPort" + ] + }, + { + "type": "object", + "properties": { + "etsi280:UDPPort": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "etsi280:UDPPort" + ] + } + ] + }, + "PortRange": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:TCPPortRange": { + "$ref": "#/$defs/TCPPortRange" + } + }, + "required": [ + "etsi280:TCPPortRange" + ] + }, + { + "type": "object", + "properties": { + "etsi280:UDPPortRange": { + "$ref": "#/$defs/UDPPortRange" + } + }, + "required": [ + "etsi280:UDPPortRange" + ] + } + ] + }, + "IPAddressPort": { + "type": "object", + "properties": { + "etsi280:address": { + "$ref": "#/$defs/IPAddress" + }, + "etsi280:port": { + "$ref": "#/$defs/Port" + } + }, + "required": [ + "etsi280:address", + "etsi280:port" + ] + }, + "IPAddressPortRange": { + "type": "object", + "properties": { + "etsi280:address": { + "$ref": "#/$defs/IPAddress" + }, + "etsi280:portRange": { + "$ref": "#/$defs/PortRange" + } + }, + "required": [ + "etsi280:address", + "etsi280:portRange" + ] + }, + "WGS84CoordinateDecimal": { + "type": "object", + "properties": { + "etsi280:latitude": { + "$ref": "#/$defs/WGS84LatitudeDecimal" + }, + "etsi280:longitude": { + "$ref": "#/$defs/WGS84LongitudeDecimal" + } + }, + "required": [ + "etsi280:latitude", + "etsi280:longitude" + ] + }, + "WGS84CoordinateAngular": { + "type": "object", + "properties": { + "etsi280:latitude": { + "$ref": "#/$defs/WGS84LatitudeAngular" + }, + "etsi280:longitude": { + "$ref": "#/$defs/WGS84LongitudeAngular" + } + }, + "required": [ + "etsi280:latitude", + "etsi280:longitude" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Common.schema.json b/103120/schema/json/ts_103120_Common.schema.json index 2564e8d..d11b4b4 100644 --- a/103120/schema/json/ts_103120_Common.schema.json +++ b/103120/schema/json/ts_103120_Common.schema.json @@ -87,12 +87,12 @@ { "type": "object", "properties": { - "NationalApproverIdentity": { + "common:NationalApproverIdentity": { "$ref": "#/$defs/NationalApproverIdentity" } }, "required": [ - "NationalApproverIdentity" + "common:NationalApproverIdentity" ] } ] @@ -128,12 +128,12 @@ { "type": "object", "properties": { - "NationalDigitalSignature": { + "common:NationalDigitalSignature": { "$ref": "#/$defs/NationalDigitalSignature" } }, "required": [ - "NationalDigitalSignature" + "common:NationalDigitalSignature" ] } ] diff --git a/103120/schema/json/ts_103120_Delivery.schema.json b/103120/schema/json/ts_103120_Delivery.schema.json index 3d79eb2..9cfceae 100644 --- a/103120/schema/json/ts_103120_Delivery.schema.json +++ b/103120/schema/json/ts_103120_Delivery.schema.json @@ -63,23 +63,23 @@ { "type": "object", "properties": { - "LDID": { + "delivery:LDID": { "$ref": "ts_103280_2017_07#/$defs/LDID" } }, "required": [ - "LDID" + "delivery:LDID" ] }, { "type": "object", "properties": { - "LIID": { + "delivery:LIID": { "$ref": "ts_103280_2017_07#/$defs/LIID" } }, "required": [ - "LIID" + "delivery:LIID" ] } ] @@ -89,23 +89,23 @@ { "type": "object", "properties": { - "Specification": { + "delivery:Specification": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" } }, "required": [ - "Specification" + "delivery:Specification" ] }, { "type": "object", "properties": { - "ExternalSchema": { + "delivery:ExternalSchema": { "$ref": "#/$defs/ExternalSchema" } }, "required": [ - "ExternalSchema" + "delivery:ExternalSchema" ] } ] @@ -127,23 +127,23 @@ { "type": "object", "properties": { - "BinaryData": { + "delivery:BinaryData": { "$ref": "#/$defs/EmbeddedBinaryData" } }, "required": [ - "BinaryData" + "delivery:BinaryData" ] }, { "type": "object", "properties": { - "XMLSchema": { + "delivery:XMLSchema": { "$ref": "#/$defs/SchemaContent" } }, "required": [ - "XMLSchema" + "delivery:XMLSchema" ] } ] @@ -162,23 +162,23 @@ { "type": "object", "properties": { - "BinaryData": { + "delivery:BinaryData": { "$ref": "#/$defs/EmbeddedBinaryData" } }, "required": [ - "BinaryData" + "delivery:BinaryData" ] }, { "type": "object", "properties": { - "XMLData": { + "delivery:XMLData": { "$ref": "#/$defs/EmbeddedXMLData" } }, "required": [ - "XMLData" + "delivery:XMLData" ] } ] diff --git a/103120/schema/json/ts_103120_Task.schema.json b/103120/schema/json/ts_103120_Task.schema.json index 6854a61..24de4c5 100644 --- a/103120/schema/json/ts_103120_Task.schema.json +++ b/103120/schema/json/ts_103120_Task.schema.json @@ -202,122 +202,122 @@ { "type": "object", "properties": { - "IPv4Address": { + "task:IPv4Address": { "$ref": "ts_103280_2017_07#/$defs/IPv4Address" } }, "required": [ - "IPv4Address" + "task:IPv4Address" ] }, { "type": "object", "properties": { - "IPv6Address": { + "task:IPv6Address": { "$ref": "ts_103280_2017_07#/$defs/IPv6Address" } }, "required": [ - "IPv6Address" + "task:IPv6Address" ] }, { "type": "object", "properties": { - "IPAddressPort": { + "task:IPAddressPort": { "$ref": "ts_103280_2017_07#/$defs/IPAddressPort" } }, "required": [ - "IPAddressPort" + "task:IPAddressPort" ] }, { "type": "object", "properties": { - "IPAddressPortRange": { + "task:IPAddressPortRange": { "$ref": "ts_103280_2017_07#/$defs/IPAddressPortRange" } }, "required": [ - "IPAddressPortRange" + "task:IPAddressPortRange" ] }, { "type": "object", "properties": { - "E164Number": { + "task:E164Number": { "$ref": "ts_103280_2017_07#/$defs/InternationalE164" } }, "required": [ - "E164Number" + "task:E164Number" ] }, { "type": "object", "properties": { - "FTPAddress": { + "task:FTPAddress": { "type": "string" } }, "required": [ - "FTPAddress" + "task:FTPAddress" ] }, { "type": "object", "properties": { - "URL": { + "task:URL": { "type": "string" } }, "required": [ - "URL" + "task:URL" ] }, { "type": "object", "properties": { - "FQDN": { + "task:FQDN": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "FQDN" + "task:FQDN" ] }, { "type": "object", "properties": { - "EmailAddress": { + "task:EmailAddress": { "$ref": "ts_103280_2017_07#/$defs/EmailAddress" } }, "required": [ - "EmailAddress" + "task:EmailAddress" ] }, { "type": "object", "properties": { - "EndpointID": { + "task:EndpointID": { "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" } }, "required": [ - "EndpointID" + "task:EndpointID" ] }, { "type": "object", "properties": { - "DeliveryInformationID": { + "task:DeliveryInformationID": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "DeliveryInformationID" + "task:DeliveryInformationID" ] } ] diff --git a/103120/schema/json/ts_103120_TrafficPolicy.schema.json b/103120/schema/json/ts_103120_TrafficPolicy.schema.json index 2bbfc17..1d9619e 100644 --- a/103120/schema/json/ts_103120_TrafficPolicy.schema.json +++ b/103120/schema/json/ts_103120_TrafficPolicy.schema.json @@ -136,23 +136,23 @@ { "type": "object", "properties": { - "IPPolicyCriteria": { + "tp:IPPolicyCriteria": { "$ref": "#/$defs/IPPolicyCriteria" } }, "required": [ - "IPPolicyCriteria" + "tp:IPPolicyCriteria" ] }, { "type": "object", "properties": { - "MobileAccessPolicyCriteria": { + "tp:MobileAccessPolicyCriteria": { "$ref": "#/$defs/MobileAccessPolicyCriteria" } }, "required": [ - "MobileAccessPolicyCriteria" + "tp:MobileAccessPolicyCriteria" ] } ] diff --git a/utils/translate/ChoiceMapping.py b/utils/translate/ChoiceMapping.py index fecadf8..b477a33 100644 --- a/utils/translate/ChoiceMapping.py +++ b/utils/translate/ChoiceMapping.py @@ -12,20 +12,25 @@ log = logging.getLogger() class ChoiceMapping(ComplexTypeMapping): @classmethod - def process_choice(cls, choice: XsdGroup, current_ns : str): + def process_choice(cls, choice: XsdGroup, current_ns : str, ns_to_id_map): if choice.model != 'choice': raise Exception(f"Wrong group type: {c.model}") oneOf = [] for c in choice.iter_model(): if not (type(c) is XsdElement): raise Exception (f"Non-element {c} encountered in choice {choice}") + element_name = c.local_name + if c.target_namespace in ns_to_id_map: + ns = ns_to_id_map[c.target_namespace] + if 'prefix' in ns: + element_name = ns['prefix'] + ":" + element_name t = TypeMapping.get_type_from_elem(c, current_ns) oneOf.append({ "type" : "object", "properties" : { - c.local_name : t + element_name : t }, - "required" : [c.local_name] + "required" : [element_name] }) return oneOf @@ -39,4 +44,4 @@ class ChoiceMapping(ComplexTypeMapping): if (content.model != 'choice'): log.debug("Not a choice, giving up") return None - return { 'oneOf' : ChoiceMapping.process_choice(content, xst.namespaces[''])} + return { 'oneOf' : ChoiceMapping.process_choice(content, xst.namespaces[''], self.ns_to_id_map)} diff --git a/utils/translate/SequenceMapping.py b/utils/translate/SequenceMapping.py index 9fd4d69..670a3ba 100644 --- a/utils/translate/SequenceMapping.py +++ b/utils/translate/SequenceMapping.py @@ -70,7 +70,7 @@ class SequenceMapping(ComplexTypeMapping): raise Exception (f"Second group '{element_name}' encountered in {xst}") if c.model != "choice": raise Exception (f"Don't know what to do with inner group {c} in {xst} - not a choice") - inner_choice = ChoiceMapping.process_choice(c, xst.namespaces['']) + inner_choice = ChoiceMapping.process_choice(c, xst.namespaces[''], self.ns_to_id_map) elif type(c) is XsdAnyElement: mapped_type = {} else: diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index ac32d7e..92a0348 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -29,6 +29,58 @@ def removePrefixes (o, prefixes): for r in replacements: o[r[1]] = o.pop(r[0]) +object_namespaces = { + 'AuthorisationObject' : 'http://uri.etsi.org/03120/common/2020/09/Authorisation', + 'DeliveryObject' : 'http://uri.etsi.org/03120/common/2019/10/Delivery', + 'DocumentObject' : 'http://uri.etsi.org/03120/common/2020/09/Document', + 'NotificationObject' : 'http://uri.etsi.org/03120/common/2016/02/Notification', + 'LITaskObject' : 'http://uri.etsi.org/03120/common/2020/09/Task', + 'LDTaskObject' : 'http://uri.etsi.org/03120/common/2020/09/Task', + 'TrafficPolicyObject' : 'http://uri.etsi.org/03120/common/2022/07/TrafficPolicy', + 'TrafficRuleObject' : 'http://uri.etsi.org/03120/common/2022/07/TrafficPolicy' +} + +coerce_to_list = [ + 'auth:AuthorisationApprovalDetails', + 'auth:AuthorisationFlag', + 'auth:CSPID', + 'common:ApproverContactDetails', + 'ActionRequest', + 'ActionResponse', + 'ListResponseRecord', + 'AssociatedObject', + 'document:DocumentSignature', + 'document:DocumentProperty', + 'notification:AssociatedObjectStatus', + 'task:ApprovalDetails', + 'task:TargetIdentifierValue', + 'task:DeliveryDestination', + 'task:TaskFlag', + 'task:ApprovalDetails', + 'task:ObservedTimes', + 'task:RequestValue', + 'task:RequestSubtype', + 'task:LDDeliveryDestination', + 'task:LDTaskFlag', + 'task:TrafficPolicyReference', + 'tp:TrafficRuleReference', + 'tp:Criteria' +] + +coerce_to_int = [ + 'ActionIdentifier' +] + +def postprocessor (path, key, value): + if key == "@xsi:type": + object_name = value.split(":")[-1] + if object_name in object_namespaces.keys(): + value = "{" + object_namespaces[object_name] + "}" + object_name + return key, value + if key in coerce_to_int: + return key, int(value) + return key, value + if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('-v', '--verbose', action='count', help='Verbose logging (can be specified multiple times)') @@ -49,12 +101,12 @@ if __name__ == "__main__": args.input.close() logging.debug(s) - # d = xmltodict.parse(s, - # force_list=('AssociatedObject',) - # )['HI1Message'] d = xmltodict.parse(s, - force_list=('AssociatedObject',) + force_list=tuple(coerce_to_list), + # process_namespaces=True, + # namespaces = namespace_prefixes, + postprocessor=postprocessor )['HI1Message'] # prefixes = extract_prefixes(d) -- GitLab From d6e23cee2e5d51190e22114d969fd486ac11334b Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 2 Jun 2023 15:38:06 +0100 Subject: [PATCH 11/22] Fixing doc prefix --- 103120/examples/request3.xml | 2 +- .../json/ts_103120_Document.schema.json | 48 +++++++++---------- utils/translate/SequenceMapping.py | 1 - utils/ts103120_config.json | 2 +- utils/xml_to_json.py | 4 +- 5 files changed, 28 insertions(+), 29 deletions(-) diff --git a/103120/examples/request3.xml b/103120/examples/request3.xml index 718f621..7d9b7c3 100644 --- a/103120/examples/request3.xml +++ b/103120/examples/request3.xml @@ -29,7 +29,7 @@ ACTOR01 W000001 - 2015-09-01T12:00:00Z + 2015-09-01T12:00:00BlahBlahZ 2015-12-01T12:00:00Z diff --git a/103120/schema/json/ts_103120_Document.schema.json b/103120/schema/json/ts_103120_Document.schema.json index f5b850b..afeb421 100644 --- a/103120/schema/json/ts_103120_Document.schema.json +++ b/103120/schema/json/ts_103120_Document.schema.json @@ -33,40 +33,40 @@ "NationalHandlingParameters": { "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" }, - "document:DocumentReference": { + "doc:DocumentReference": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "document:DocumentName": { + "doc:DocumentName": { "$ref": "ts_103280_2017_07#/$defs/LongString" }, - "document:DocumentStatus": { + "doc:DocumentStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "document:DocumentDesiredStatus": { + "doc:DocumentDesiredStatus": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "document:DocumentTimespan": { + "doc:DocumentTimespan": { "$ref": "#/$defs/DocumentTimespan" }, - "document:DocumentType": { + "doc:DocumentType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "document:DocumentProperties": { + "doc:DocumentProperties": { "$ref": "#/$defs/DocumentProperties" }, - "document:DocumentBody": { + "doc:DocumentBody": { "$ref": "#/$defs/DocumentBody" }, - "document:DocumentSignature": { + "doc:DocumentSignature": { "type": "array", "items": { "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" } }, - "document:DocumentInvalidReason": { + "doc:DocumentInvalidReason": { "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" }, - "document:NationalDocumentParameters": { + "doc:NationalDocumentParameters": { "$ref": "#/$defs/NationalDocumentParameters" } }, @@ -78,10 +78,10 @@ "DocumentTimespan": { "type": "object", "properties": { - "document:StartTime": { + "doc:StartTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" }, - "document:EndTime": { + "doc:EndTime": { "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" } }, @@ -90,7 +90,7 @@ "DocumentProperties": { "type": "object", "properties": { - "document:DocumentProperty": { + "doc:DocumentProperty": { "type": "array", "items": { "$ref": "#/$defs/DocumentProperty" @@ -102,32 +102,32 @@ "DocumentProperty": { "type": "object", "properties": { - "document:PropertyType": { + "doc:PropertyType": { "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" }, - "document:PropertyValue": { + "doc:PropertyValue": { "$ref": "ts_103280_2017_07#/$defs/LongString" } }, "required": [ - "document:PropertyType", - "document:PropertyValue" + "doc:PropertyType", + "doc:PropertyValue" ] }, "DocumentBody": { "type": "object", "properties": { - "document:Contents": { + "doc:Contents": { "type": "string", "pattern": "^[-A-Za-z0-9+/]*={0,3}$" }, - "document:ContentType": { + "doc:ContentType": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "document:Checksum": { + "doc:Checksum": { "$ref": "ts_103280_2017_07#/$defs/ShortString" }, - "document:ChecksumType": { + "doc:ChecksumType": { "$ref": "ts_103280_2017_07#/$defs/ShortString" } }, @@ -136,12 +136,12 @@ "NationalDocumentParameters": { "type": "object", "properties": { - "document:CountryCode": { + "doc:CountryCode": { "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" } }, "required": [ - "document:CountryCode" + "doc:CountryCode" ] } } diff --git a/utils/translate/SequenceMapping.py b/utils/translate/SequenceMapping.py index 670a3ba..4dc5c93 100644 --- a/utils/translate/SequenceMapping.py +++ b/utils/translate/SequenceMapping.py @@ -45,7 +45,6 @@ class SequenceMapping(ComplexTypeMapping): inner_choice = None for c in list(content.iter_model()): log.debug(f"Processing model item {c}") - print("Model item -------------") if type(c) is XsdElement: element_name = c.local_name if c.target_namespace in self.ns_to_id_map: diff --git a/utils/ts103120_config.json b/utils/ts103120_config.json index ec32171..d213376 100644 --- a/utils/ts103120_config.json +++ b/utils/ts103120_config.json @@ -12,7 +12,7 @@ "prefix" : "delivery" }, "./103120/schema/ts_103120_Document.xsd" : { - "prefix" : "document" + "prefix" : "doc" }, "./103120/schema/ts_103120_Notification.xsd" : { "prefix" : "notification" diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index 92a0348..afc0f03 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -49,8 +49,8 @@ coerce_to_list = [ 'ActionResponse', 'ListResponseRecord', 'AssociatedObject', - 'document:DocumentSignature', - 'document:DocumentProperty', + 'doc:DocumentSignature', + 'doc:DocumentProperty', 'notification:AssociatedObjectStatus', 'task:ApprovalDetails', 'task:TargetIdentifierValue', -- GitLab From 6a8c9138968dff21221df0dc530c05e1c31f6004 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 2 Jun 2023 15:39:05 +0100 Subject: [PATCH 12/22] Fixing XML --- 103120/examples/request3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/103120/examples/request3.xml b/103120/examples/request3.xml index 7d9b7c3..718f621 100644 --- a/103120/examples/request3.xml +++ b/103120/examples/request3.xml @@ -29,7 +29,7 @@ ACTOR01 W000001 - 2015-09-01T12:00:00BlahBlahZ + 2015-09-01T12:00:00Z 2015-12-01T12:00:00Z -- GitLab From d1ff3d1a0fa58c96efdd0bbd3ae18452f0344766 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 8 Jun 2023 16:21:38 +0100 Subject: [PATCH 13/22] Changing extensions of interest for CI/CD --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8ec525..2cee538 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,7 +48,7 @@ generate_artefacts: - echo $CI_MERGE_REQUEST_IID - echo $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME - echo $ARTEFACT_NAME - - forgelib-changedocs -v -d -c -l --startdelimiter coversheets/delimiter_start.docx --enddelimiter coversheets/delimiter_end.docx https://$CI_SERVER_HOST/rep $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID + - forgelib-changedocs -v -d -c -l -x asn -x asn1 -x xml -x xsd -x json --startdelimiter coversheets/delimiter_start.docx --enddelimiter coversheets/delimiter_end.docx https://$CI_SERVER_HOST/rep $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID artifacts: untracked: true paths: -- GitLab From b21e777d5d61c8e1a87efdb44942d74012da6310 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 8 Jun 2023 16:27:27 +0100 Subject: [PATCH 14/22] Extensions --- .gitlab-ci.yml | 2 +- ...ce_diff_blocks_instead_of_track_changes.docx | Bin 0 -> 36570 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Update_artefacts_to_produce_diff_blocks_instead_of_track_changes.docx diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2cee538..bb69914 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,7 +48,7 @@ generate_artefacts: - echo $CI_MERGE_REQUEST_IID - echo $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME - echo $ARTEFACT_NAME - - forgelib-changedocs -v -d -c -l -x asn -x asn1 -x xml -x xsd -x json --startdelimiter coversheets/delimiter_start.docx --enddelimiter coversheets/delimiter_end.docx https://$CI_SERVER_HOST/rep $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID + - forgelib-changedocs -v -d -c -l -x json --startdelimiter coversheets/delimiter_start.docx --enddelimiter coversheets/delimiter_end.docx https://$CI_SERVER_HOST/rep $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID artifacts: untracked: true paths: diff --git a/Update_artefacts_to_produce_diff_blocks_instead_of_track_changes.docx b/Update_artefacts_to_produce_diff_blocks_instead_of_track_changes.docx new file mode 100644 index 0000000000000000000000000000000000000000..74b1d0ec85080a6d16d974d4c00ebabeba589c59 GIT binary patch literal 36570 zcmagFWmp}_wm*!!dvJmUm*DPh!6mr6ySqyuxCVE3cY-H4!QGt=Z1le~bLQNcbMAfL zFU>>MT0dD;-BolKO0tkpSYTjaa9~Qo-_@&>i@qd-gMp2~fPrCxT6IM2?OaUlT=Z2v z9Za2d89i)mnv&%eSA@{QE?%%xm;^|@MNzTKw;et>(0{=ftH}g#X)Q6G$w2_`CwL;& zekz5-Fn-BOzxO3xsps$ZX{OQ<6+6?_&C)1%4_V?QEG>1ZV0Bf zHOuGSGzU2IPVE4XK1S$;NS=03vL+BLj=Cyd9fM>z6i%6c3_7Bw;3wy|PI3oT<>T+v zJ9HL%V@hr>6aMb+fuaH8IWJ3$RO;E*nF#HHTxpR8mueDW291e>&UJ2+bPZ1CYL4|Q zeMKl9!-)21GrP9EjPBzaACF<`%VKU-wAV4LLU+&XtwX44XAdEBG~VoZ^G;UO=`1?6 zwc=ELEsukx@V)LuQL;{YgJ`H5$aKHLWUzL|SNVk858U6=6va~r0GA^4?&oIZZ70+M zzN3b*s|nUAcL>L)jDF^BVtL#J28R2=f#q>J;Aa2_xVp)@_JxO z{}@G2Dp{ci(CDp0fPo=`e(F1!+Bh>Y{=QZvPRc;CpaonAh<~Rnv1?WnD_qtSJCrXJ z=uMkAFShfOD*n~o^+`-u6Q_^(;9|$v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F0p5&EBH-b14u*i{ z6JcwEmQI`sY@wb4j=6!l9Wc-U6k}kBb_Naxr{{r&$EY=4$g+o~x_)$zU1P;oB9a3CUnUe~hu0#(5 z^aCYf`WqN8TB2x1J6;mq9Q1ioggH+6FmsS5QP8!cPrM+s8x%veqfNu0n}9wMfiNMd z1Zo1xv;?|-^igAk{;y?F{pe%J=tiLTzY#{ftHs(IM>hbyql+-$SRJwf*t)&wW}){T z5oYbLM>Y$!Cy8zfdRGf!%C!b)sGxMb(DkFY2NC)UTadCCYU?n-n-!RYK)FhgArY88 IlDj}W0H0VWLjV8( literal 0 HcmV?d00001 -- GitLab From 8d2bfa0b755d638fa0bbc3ddb24ee19482af5876 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 8 Jun 2023 16:35:51 +0100 Subject: [PATCH 15/22] Reverting CI/CD changes --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb69914..a8ec525 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,7 +48,7 @@ generate_artefacts: - echo $CI_MERGE_REQUEST_IID - echo $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME - echo $ARTEFACT_NAME - - forgelib-changedocs -v -d -c -l -x json --startdelimiter coversheets/delimiter_start.docx --enddelimiter coversheets/delimiter_end.docx https://$CI_SERVER_HOST/rep $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID + - forgelib-changedocs -v -d -c -l --startdelimiter coversheets/delimiter_start.docx --enddelimiter coversheets/delimiter_end.docx https://$CI_SERVER_HOST/rep $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID artifacts: untracked: true paths: -- GitLab From c61e1409735f75b60400118e52746a5ce76a5471 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 8 Jun 2023 16:58:43 +0100 Subject: [PATCH 16/22] Removing extra changes --- 103120/examples/fragment.json | 38 -- 103120/examples/fragment.schema.json | 4 - 103120/examples/request1.json | 90 --- 103120/examples/request1b.json | 43 -- 103120/examples/request1c.json | 33 - 103120/examples/request1d.json | 47 -- 103120/schema/json/TS_103_280.schema.json | 389 ------------ .../json/ts_103120_Authorisation.schema.json | 148 ----- .../schema/json/ts_103120_Common.schema.json | 164 ----- 103120/schema/json/ts_103120_Core.schema.json | 590 ----------------- .../json/ts_103120_Delivery.schema.json | 209 ------ .../json/ts_103120_Document.schema.json | 148 ----- .../json/ts_103120_Notification.schema.json | 103 --- 103120/schema/json/ts_103120_Task.schema.json | 599 ------------------ .../json/ts_103120_TrafficPolicy.schema.json | 198 ------ 15 files changed, 2803 deletions(-) delete mode 100644 103120/examples/fragment.json delete mode 100644 103120/examples/fragment.schema.json delete mode 100644 103120/examples/request1.json delete mode 100644 103120/examples/request1b.json delete mode 100644 103120/examples/request1c.json delete mode 100644 103120/examples/request1d.json delete mode 100644 103120/schema/json/TS_103_280.schema.json delete mode 100644 103120/schema/json/ts_103120_Authorisation.schema.json delete mode 100644 103120/schema/json/ts_103120_Common.schema.json delete mode 100644 103120/schema/json/ts_103120_Core.schema.json delete mode 100644 103120/schema/json/ts_103120_Delivery.schema.json delete mode 100644 103120/schema/json/ts_103120_Document.schema.json delete mode 100644 103120/schema/json/ts_103120_Notification.schema.json delete mode 100644 103120/schema/json/ts_103120_Task.schema.json delete mode 100644 103120/schema/json/ts_103120_TrafficPolicy.schema.json diff --git a/103120/examples/fragment.json b/103120/examples/fragment.json deleted file mode 100644 index 44f2f88..0000000 --- a/103120/examples/fragment.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject", - "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "AssociatedObjects": { - "AssociatedObject": ["7dbbc880-8750-4d3c-abe7-ea4a17646045"] - }, - "task:Reference": "LIID1", - "task:TargetIdentifier": { - "task:TargetIdentifierValues": { - "task:TargetIdentifierValue": [{ - "task:FormatType": { - "task:FormatOwner": "ETSI", - "task:FormatName": "InternationalE164" - }, - "task:Value": "442079460223" - }] - } - }, - "task:DeliveryType": { - "common:Owner": "ETSI", - "common:Name": "TaskDeliveryType", - "common:Value": "IRIandCC" - }, - "task:DeliveryDetails": { - "task:DeliveryDestination": [{ - "task:DeliveryAddress": { - "IPv4Address": "192.0.2.0" - } - }] - }, - "task:CSPID": { - "CountryCode": "XX", - "UniqueIdentifier": "RECVER01" - } - -} \ No newline at end of file diff --git a/103120/examples/fragment.schema.json b/103120/examples/fragment.schema.json deleted file mode 100644 index afb21c1..0000000 --- a/103120/examples/fragment.schema.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$id": "ts_103120_Task_2020_09", - "$ref" : "#/$defs/RequestPayload" -} \ No newline at end of file diff --git a/103120/examples/request1.json b/103120/examples/request1.json deleted file mode 100644 index d5c90ab..0000000 --- a/103120/examples/request1.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "@xmlns": "http://uri.etsi.org/03120/common/2019/10/Core", - "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", - "@xmlns:common": "http://uri.etsi.org/03120/common/2016/02/Common", - "@xmlns:task": "http://uri.etsi.org/03120/common/2020/09/Task", - "@xmlns:auth": "http://uri.etsi.org/03120/common/2020/09/Authorisation", - "Header": { - "SenderIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR01" - }, - "ReceiverIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR02" - }, - "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", - "Timestamp": "2015-09-01T12:00:00.000000Z", - "Version": { - "ETSIVersion": "V1.13.1", - "NationalProfileOwner": "XX", - "NationalProfileVersion": "v1.0" - } - }, - "Payload": { - "RequestPayload": { - "ActionRequests": { - "ActionRequest": [ - { - "ActionIdentifier": 0, - "CREATE": { - "HI1Object": { - "@xsi:type": "auth:AuthorisationObject", - "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "auth:AuthorisationReference": "W000001", - "auth:AuthorisationTimespan": { - "auth:StartTime": "2015-09-01T12:00:00Z", - "auth:EndTime": "2015-12-01T12:00:00Z" - } - } - } - }, - { - "ActionIdentifier": 1, - "CREATE": { - "HI1Object": { - "@xsi:type": "task:LITaskObject", - "ObjectIdentifier": "2b36a78b-b628-416d-bd22-404e68a0cd36", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "AssociatedObjects": { - "AssociatedObject": "7dbbc880-8750-4d3c-abe7-ea4a17646045" - }, - "task:Reference": "LIID1", - "task:TargetIdentifier": { - "task:TargetIdentifierValues": { - "task:TargetIdentifierValue": { - "task:FormatType": { - "task:FormatOwner": "ETSI", - "task:FormatName": "InternationalE164" - }, - "task:Value": "442079460223" - } - } - }, - "task:DeliveryType": { - "common:Owner": "ETSI", - "common:Name": "TaskDeliveryType", - "common:Value": "IRIandCC" - }, - "task:DeliveryDetails": { - "task:DeliveryDestination": { - "task:DeliveryAddress": { - "task:IPv4Address": "192.0.2.0" - } - } - }, - "task:CSPID": { - "CountryCode": "XX", - "UniqueIdentifier": "RECVER01" - } - } - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/103120/examples/request1b.json b/103120/examples/request1b.json deleted file mode 100644 index 82b1a1e..0000000 --- a/103120/examples/request1b.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "Header": { - "SenderIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR01" - }, - "ReceiverIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR02" - }, - "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", - "Timestamp": "2015-09-01T12:00:00.000000Z", - "Version": { - "ETSIVersion": "V1.13.1", - "NationalProfileOwner": "XX", - "NationalProfileVersion": "v1.0" - } - }, - "Payload": { - "RequestPayload": { - "ActionRequests": { - "ActionRequest": [ - { - "ActionIdentifier": 0, - "CREATE": { - "HI1Object": { - "@xsi:type": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject", - "ObjectIdentifier": "7dbbc880-8750-4d3c-abe7-ea4a17646045", - "CountryCode": "XX", - "OwnerIdentifier": "ACTOR01", - "AuthorisationReference": "W000001", - "AuthorisationTimespan": { - "StartTime": "2015-09-01T12:00:00Z", - "EndTime": "2015-12-01T12:00:00Z" - } - } - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/103120/examples/request1c.json b/103120/examples/request1c.json deleted file mode 100644 index 645f706..0000000 --- a/103120/examples/request1c.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Header": { - "SenderIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR01" - }, - "ReceiverIdentifier": { - "CountryCode": "XX", - "UniqueIdentifier": "ACTOR02" - }, - "TransactionIdentifier": "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e", - "Timestamp": "2015-09-01T12:00:00.000000Z", - "Version": { - "ETSIVersion": "V1.13.1", - "NationalProfileOwner": "XX", - "NationalProfileVersion": "v1.0" - } - }, - "Payload": { - "RequestPayload": { - "ActionRequests": { - "ActionRequest": [ - { - "ActionIdentifier": 1, - "GET": { - "Identifier" : "c02358b2-76cf-4ba4-a8eb-f6436ccaea2e" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/103120/examples/request1d.json b/103120/examples/request1d.json deleted file mode 100644 index bf34f7f..0000000 --- a/103120/examples/request1d.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "Header" : { - "SenderIdentifier" : { - "CountryCode" : "XX", - "UniqueIdentifier" : "ACTOR01" - }, - "ReceiverIdentifier" : { - "CountryCode" : "YY", - "UniqueIdentifier" : "ACTOR02" - }, - "TransactionIdentifier" : "c4a09046-61da-485b-83f2-ca12caebf40b", - "Timestamp" : "2022-06-10T15:50:00.000000Z", - "Version" : { - "ETSIVersion" : "V1.11.2", - "NationalProfileOwner" : "NA", - "NationalProfileVersion" : "NA" - } - }, - "Payload" : { - "ResponsePayload" : { - "ActionResponses" : { - "ActionResponse" : [{ - "ActionIdentifier" : 0, - "CREATEResponse" : { - "Identifier" : "f25dec16-927c-433b-959c-1886182cac58", - "HI1Object" : { - "xsiType" : "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject", - "ObjectIdentifier" : "d980e335-d17a-471f-bb40-cddf4457fd6b", - "Reference" : "LIID", - "TargetIdentifier" : { - "TargetIdentifierValues" : { - "TargetIdentifierValue" : [ { - "FormatType" : { - "FormatOwner" : "ETSI", - "FormatName" : "InternationalE164" - }, - "Value" : "447700900123" - } ] - } - } - } - } - }] - } - } - } -} diff --git a/103120/schema/json/TS_103_280.schema.json b/103120/schema/json/TS_103_280.schema.json deleted file mode 100644 index 02cd078..0000000 --- a/103120/schema/json/TS_103_280.schema.json +++ /dev/null @@ -1,389 +0,0 @@ -{ - "$id": "ts_103280_2017_07", - "$defs": { - "ShortString": { - "type": "string", - "maxLength": 255 - }, - "LongString": { - "type": "string", - "maxLength": 65535 - }, - "LIID": { - "type": "string", - "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" - }, - "UTCDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" - }, - "UTCMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" - }, - "QualifiedDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "QualifiedMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "InternationalE164": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "IMSI": { - "type": "string", - "pattern": "^[0-9]{6,15}$" - }, - "IMEI": { - "type": "string", - "pattern": "^[0-9]{14}$" - }, - "IMEICheckDigit": { - "type": "string", - "pattern": "^[0-9]{15}$" - }, - "IMEISV": { - "type": "string", - "pattern": "^[0-9]{16}$" - }, - "IPv4Address": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" - }, - "IPv4CIDR": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" - }, - "IPv6Address": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" - }, - "IPv6CIDR": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" - }, - "TCPPort": { - "type": "integer", - "exclusiveMinimum": 1, - "maximum": 65535 - }, - "UDPPort": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "MACAddress": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" - }, - "EmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" - } - ] - }, - "UUID": { - "type": "string", - "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" - }, - "ISOCountryCode": { - "type": "string", - "pattern": "^[A-Z]{2}$" - }, - "SIPURI": { - "type": "string", - "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "TELURI": { - "type": "string", - "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "WGS84LatitudeDecimal": { - "type": "string", - "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" - }, - "WGS84LongitudeDecimal": { - "type": "string", - "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" - }, - "WGS84LatitudeAngular": { - "type": "string", - "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" - }, - "WGS84LongitudeAngular": { - "type": "string", - "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" - }, - "SUPIIMSI": { - "$ref": "#/$defs/IMSI" - }, - "SUPINAI": { - "$ref": "#/$defs/NAI" - }, - "SUCI": { - "type": "string", - "pattern": "^([a-fA-F0-9]{2})*$" - }, - "PEIIMEI": { - "$ref": "#/$defs/IMEI" - }, - "PEIIMEICheckDigit": { - "$ref": "#/$defs/IMEICheckDigit" - }, - "PEIIMEISV": { - "$ref": "#/$defs/IMEISV" - }, - "GPSIMSISDN": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "GPSINAI": { - "$ref": "#/$defs/NAI" - }, - "NAI": { - "type": "string" - }, - "LDID": { - "type": "string", - "pattern": "^([A-Z]{2}-.+-.+)$" - }, - "InternationalizedEmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^.+@.+$" - } - ] - }, - "EUI64": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" - }, - "CGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" - }, - "ECGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" - }, - "NCGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" - }, - "ICCID": { - "type": "string", - "pattern": "^[0-9]{19,20}$" - }, - "IPProtocol": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "IPAddress": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:IPv4Address": { - "$ref": "#/$defs/IPv4Address" - } - }, - "required": [ - "etsi280:IPv4Address" - ] - }, - { - "type": "object", - "properties": { - "etsi280:IPv6Address": { - "$ref": "#/$defs/IPv6Address" - } - }, - "required": [ - "etsi280:IPv6Address" - ] - } - ] - }, - "IPCIDR": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:IPv4CIDR": { - "$ref": "#/$defs/IPv4CIDR" - } - }, - "required": [ - "etsi280:IPv4CIDR" - ] - }, - { - "type": "object", - "properties": { - "etsi280:IPv6CIDR": { - "$ref": "#/$defs/IPv6CIDR" - } - }, - "required": [ - "etsi280:IPv6CIDR" - ] - } - ] - }, - "TCPPortRange": { - "type": "object", - "properties": { - "etsi280:start": { - "$ref": "#/$defs/TCPPort" - }, - "etsi280:end": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "etsi280:start", - "etsi280:end" - ] - }, - "UDPPortRange": { - "type": "object", - "properties": { - "etsi280:start": { - "$ref": "#/$defs/UDPPort" - }, - "etsi280:end": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "etsi280:start", - "etsi280:end" - ] - }, - "Port": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:TCPPort": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "etsi280:TCPPort" - ] - }, - { - "type": "object", - "properties": { - "etsi280:UDPPort": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "etsi280:UDPPort" - ] - } - ] - }, - "PortRange": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:TCPPortRange": { - "$ref": "#/$defs/TCPPortRange" - } - }, - "required": [ - "etsi280:TCPPortRange" - ] - }, - { - "type": "object", - "properties": { - "etsi280:UDPPortRange": { - "$ref": "#/$defs/UDPPortRange" - } - }, - "required": [ - "etsi280:UDPPortRange" - ] - } - ] - }, - "IPAddressPort": { - "type": "object", - "properties": { - "etsi280:address": { - "$ref": "#/$defs/IPAddress" - }, - "etsi280:port": { - "$ref": "#/$defs/Port" - } - }, - "required": [ - "etsi280:address", - "etsi280:port" - ] - }, - "IPAddressPortRange": { - "type": "object", - "properties": { - "etsi280:address": { - "$ref": "#/$defs/IPAddress" - }, - "etsi280:portRange": { - "$ref": "#/$defs/PortRange" - } - }, - "required": [ - "etsi280:address", - "etsi280:portRange" - ] - }, - "WGS84CoordinateDecimal": { - "type": "object", - "properties": { - "etsi280:latitude": { - "$ref": "#/$defs/WGS84LatitudeDecimal" - }, - "etsi280:longitude": { - "$ref": "#/$defs/WGS84LongitudeDecimal" - } - }, - "required": [ - "etsi280:latitude", - "etsi280:longitude" - ] - }, - "WGS84CoordinateAngular": { - "type": "object", - "properties": { - "etsi280:latitude": { - "$ref": "#/$defs/WGS84LatitudeAngular" - }, - "etsi280:longitude": { - "$ref": "#/$defs/WGS84LongitudeAngular" - } - }, - "required": [ - "etsi280:latitude", - "etsi280:longitude" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Authorisation.schema.json b/103120/schema/json/ts_103120_Authorisation.schema.json deleted file mode 100644 index 1c9a68f..0000000 --- a/103120/schema/json/ts_103120_Authorisation.schema.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "$id": "ts_103120_Authorisation_2020_09", - "$defs": { - "AuthorisationObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "auth:AuthorisationReference": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "auth:AuthorisationLegalType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationPriority": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationDesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationTimespan": { - "$ref": "#/$defs/AuthorisationTimespan" - }, - "auth:AuthorisationCSPID": { - "$ref": "#/$defs/AuthorisationCSPID" - }, - "auth:AuthorisationCreationTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:AuthorisationServedTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:AuthorisationTerminationTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:AuthorisationApprovalDetails": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "auth:AuthorisationInvalidReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "auth:AuthorisationFlags": { - "$ref": "#/$defs/AuthorisationFlags" - }, - "auth:AuthorisationManualInformation": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "auth:NationalAuthorisationParameters": { - "$ref": "#/$defs/NationalAuthorisationParameters" - }, - "auth:AuthorisationJurisdiction": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "auth:AuthorisationTypeOfCase": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationLegalEntity": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "AuthorisationFlags": { - "type": "object", - "properties": { - "auth:AuthorisationFlag": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - } - }, - "required": [] - }, - "AuthorisationTimespan": { - "type": "object", - "properties": { - "auth:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "AuthorisationCSPID": { - "type": "object", - "properties": { - "auth:CSPID": { - "type": "array", - "items": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - }, - "minItems": 1 - } - }, - "required": [] - }, - "NationalAuthorisationParameters": { - "type": "object", - "properties": { - "auth:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "auth:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Common.schema.json b/103120/schema/json/ts_103120_Common.schema.json deleted file mode 100644 index d11b4b4..0000000 --- a/103120/schema/json/ts_103120_Common.schema.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "$id": "ts_103120_Common_2016_02", - "$defs": { - "ETSIVersion": { - "allOf": [ - { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^V\\d+\\.\\d+\\.\\d+$" - } - ] - }, - "DictionaryEntry": { - "type": "object", - "properties": { - "common:Owner": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "common:Name": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "common:Value": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "common:Owner", - "common:Name", - "common:Value" - ] - }, - "ApprovalDetails": { - "type": "object", - "properties": { - "common:ApprovalType": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApprovalDescription": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApprovalReference": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverDetails": { - "$ref": "#/$defs/ApproverDetails" - }, - "common:ApprovalTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "common:ApprovalIsEmergency": { - "type": "boolean" - }, - "common:ApprovalDigitalSignature": { - "$ref": "#/$defs/ApprovalDigitalSignature" - }, - "common:ApprovalNationalDetails": { - "$ref": "#/$defs/ApprovalNationalDetails" - } - }, - "required": [] - }, - "ApproverDetails": { - "type": "object", - "properties": { - "common:ApproverName": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverRole": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverIdentity": { - "$ref": "#/$defs/ApproverIdentity" - }, - "common:ApproverContactDetails": { - "type": "array", - "items": { - "$ref": "#/$defs/ApproverContactDetails" - } - } - }, - "required": [] - }, - "ApproverIdentity": { - "oneOf": [ - { - "type": "object", - "properties": { - "common:NationalApproverIdentity": { - "$ref": "#/$defs/NationalApproverIdentity" - } - }, - "required": [ - "common:NationalApproverIdentity" - ] - } - ] - }, - "ApproverContactDetails": { - "type": "object", - "properties": { - "common:ApproverAlternateName": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverEmailAddress": { - "$ref": "ts_103280_2017_07#/$defs/InternationalizedEmailAddress" - }, - "common:ApproverPhoneNumber": { - "$ref": "ts_103280_2017_07#/$defs/InternationalE164" - } - }, - "required": [] - }, - "NationalApproverIdentity": { - "type": "object", - "properties": { - "common:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "common:CountryCode" - ] - }, - "ApprovalDigitalSignature": { - "oneOf": [ - { - "type": "object", - "properties": { - "common:NationalDigitalSignature": { - "$ref": "#/$defs/NationalDigitalSignature" - } - }, - "required": [ - "common:NationalDigitalSignature" - ] - } - ] - }, - "ApprovalNationalDetails": { - "type": "object", - "properties": { - "common:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "common:CountryCode" - ] - }, - "NationalDigitalSignature": { - "type": "object", - "properties": { - "common:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "common:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Core.schema.json b/103120/schema/json/ts_103120_Core.schema.json deleted file mode 100644 index f116d31..0000000 --- a/103120/schema/json/ts_103120_Core.schema.json +++ /dev/null @@ -1,590 +0,0 @@ -{ - "$id": "ts_103120_Core_2019_10", - "$defs": { - "ObjectIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/UUID" - }, - "HI1Message": { - "type": "object", - "properties": { - "Header": { - "$ref": "#/$defs/MessageHeader" - }, - "Payload": { - "$ref": "#/$defs/MessagePayload" - }, - "Signature": {}, - "xmldsig:Signature": { - "$ref": "www.w3.org_2000_09_xmldsig##/$defs/SignatureType" - } - }, - "required": [ - "Header", - "Payload" - ] - }, - "MessageHeader": { - "type": "object", - "properties": { - "SenderIdentifier": { - "$ref": "#/$defs/EndpointID" - }, - "ReceiverIdentifier": { - "$ref": "#/$defs/EndpointID" - }, - "TransactionIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/UUID" - }, - "Timestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedMicrosecondDateTime" - }, - "Version": { - "$ref": "#/$defs/Version" - } - }, - "required": [ - "SenderIdentifier", - "ReceiverIdentifier", - "TransactionIdentifier", - "Timestamp", - "Version" - ] - }, - "Version": { - "type": "object", - "properties": { - "ETSIVersion": { - "$ref": "ts_103120_Common_2016_02#/$defs/ETSIVersion" - }, - "NationalProfileOwner": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "NationalProfileVersion": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "ETSIVersion", - "NationalProfileOwner", - "NationalProfileVersion" - ] - }, - "EndpointID": { - "type": "object", - "properties": { - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "UniqueIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "CountryCode", - "UniqueIdentifier" - ] - }, - "MessagePayload": { - "oneOf": [ - { - "type": "object", - "properties": { - "RequestPayload": { - "$ref": "#/$defs/RequestPayload" - } - }, - "required": [ - "RequestPayload" - ] - }, - { - "type": "object", - "properties": { - "ResponsePayload": { - "$ref": "#/$defs/ResponsePayload" - } - }, - "required": [ - "ResponsePayload" - ] - } - ] - }, - "RequestPayload": { - "type": "object", - "properties": { - "ActionRequests": { - "$ref": "#/$defs/ActionRequests" - } - }, - "required": [ - "ActionRequests" - ] - }, - "ActionRequests": { - "type": "object", - "properties": { - "ActionRequest": { - "type": "array", - "items": { - "$ref": "#/$defs/ActionRequest" - }, - "minItems": 1 - } - }, - "required": [] - }, - "ResponsePayload": { - "oneOf": [ - { - "type": "object", - "properties": { - "ActionResponses": { - "$ref": "#/$defs/ActionResponses" - } - }, - "required": [ - "ActionResponses" - ] - }, - { - "type": "object", - "properties": { - "ErrorInformation": { - "$ref": "#/$defs/ActionUnsuccesfulInformation" - } - }, - "required": [ - "ErrorInformation" - ] - } - ] - }, - "ActionResponses": { - "type": "object", - "properties": { - "ActionResponse": { - "type": "array", - "items": { - "$ref": "#/$defs/ActionResponse" - }, - "minItems": 1 - } - }, - "required": [] - }, - "ActionRequest": { - "allOf": [ - { - "type": "object", - "properties": { - "ActionIdentifier": { - "type": "integer", - "minimum": 0 - } - }, - "required": [ - "ActionIdentifier" - ] - }, - { - "oneOf": [ - { - "type": "object", - "properties": { - "GET": { - "$ref": "#/$defs/GETRequest" - } - }, - "required": [ - "GET" - ] - }, - { - "type": "object", - "properties": { - "CREATE": { - "$ref": "#/$defs/CREATERequest" - } - }, - "required": [ - "CREATE" - ] - }, - { - "type": "object", - "properties": { - "UPDATE": { - "$ref": "#/$defs/UPDATERequest" - } - }, - "required": [ - "UPDATE" - ] - }, - { - "type": "object", - "properties": { - "LIST": { - "$ref": "#/$defs/LISTRequest" - } - }, - "required": [ - "LIST" - ] - }, - { - "type": "object", - "properties": { - "DELIVER": { - "$ref": "#/$defs/DELIVERRequest" - } - }, - "required": [ - "DELIVER" - ] - } - ] - } - ] - }, - "ActionResponse": { - "allOf": [ - { - "type": "object", - "properties": { - "ActionIdentifier": { - "type": "integer", - "minimum": 0 - } - }, - "required": [ - "ActionIdentifier" - ] - }, - { - "oneOf": [ - { - "type": "object", - "properties": { - "GETResponse": { - "$ref": "#/$defs/GETResponse" - } - }, - "required": [ - "GETResponse" - ] - }, - { - "type": "object", - "properties": { - "CREATEResponse": { - "$ref": "#/$defs/CREATEResponse" - } - }, - "required": [ - "CREATEResponse" - ] - }, - { - "type": "object", - "properties": { - "UPDATEResponse": { - "$ref": "#/$defs/UPDATEResponse" - } - }, - "required": [ - "UPDATEResponse" - ] - }, - { - "type": "object", - "properties": { - "LISTResponse": { - "$ref": "#/$defs/LISTResponse" - } - }, - "required": [ - "LISTResponse" - ] - }, - { - "type": "object", - "properties": { - "ErrorInformation": { - "$ref": "#/$defs/ActionUnsuccesfulInformation" - } - }, - "required": [ - "ErrorInformation" - ] - }, - { - "type": "object", - "properties": { - "DELIVERResponse": { - "$ref": "#/$defs/DELIVERResponse" - } - }, - "required": [ - "DELIVERResponse" - ] - } - ] - } - ] - }, - "GETRequest": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - } - }, - "required": [ - "Identifier" - ] - }, - "GETResponse": { - "type": "object", - "properties": { - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "HI1Object" - ] - }, - "CREATERequest": { - "type": "object", - "properties": { - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "HI1Object" - ] - }, - "CREATEResponse": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "Identifier" - ] - }, - "UPDATERequest": { - "type": "object", - "properties": { - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "HI1Object" - ] - }, - "UPDATEResponse": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "Identifier" - ] - }, - "LISTRequest": { - "type": "object", - "properties": { - "ObjectType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "LISTResponse": { - "type": "object", - "properties": { - "ListResponseRecord": { - "type": "array", - "items": { - "$ref": "#/$defs/ListResponseRecord" - } - } - }, - "required": [] - }, - "ListResponseRecord": { - "type": "object", - "properties": { - "ObjectType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [ - "ObjectType", - "Identifier", - "Generation" - ] - }, - "ActionUnsuccesfulInformation": { - "type": "object", - "properties": { - "ErrorCode": { - "type": "integer", - "minimum": 0 - }, - "ErrorDescription": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "ErrorCode", - "ErrorDescription" - ] - }, - "DELIVERRequest": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "Identifier", - "HI1Object" - ] - }, - "DELIVERResponse": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - } - }, - "required": [ - "Identifier" - ] - }, - "HI1Object": { - "type": "object", - "properties": { - "ObjectIdentifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "#/$defs/NationalHandlingParameters" - } - }, - "required": [ - "ObjectIdentifier" - ] - }, - "AssociatedObjects": { - "type": "object", - "properties": { - "AssociatedObject": { - "type": "array", - "items": { - "$ref": "#/$defs/ObjectIdentifier" - } - } - }, - "required": [] - }, - "NationalHandlingParameters": { - "type": "object", - "properties": { - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "CountryCode" - ] - }, - "ConcreteHI1Object": { - "oneOf": [ - { - "$ref": "ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject" - }, - { - "$ref": "ts_103120_Task_2020_09#/$defs/LITaskObject" - }, - { - "$ref": "ts_103120_Task_2020_09#/$defs/LDTaskObject" - }, - { - "$ref": "ts_103120_Document_2020_09#/$defs/DocumentObject" - }, - { - "$ref": "ts_103120_Notification_2016_02#/$defs/NotificationObject" - }, - { - "$ref": "ts_103120_Delivery_2019_10#/$defs/DeliveryObject" - }, - { - "$ref": "ts_103120_TrafficPolicy_2022_07#/$defs/TrafficPolicyObject" - } - ] - } - }, - "$ref": "#/$defs/HI1Message" -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Delivery.schema.json b/103120/schema/json/ts_103120_Delivery.schema.json deleted file mode 100644 index 9cfceae..0000000 --- a/103120/schema/json/ts_103120_Delivery.schema.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "$id": "ts_103120_Delivery_2019_10", - "$defs": { - "DeliveryObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2019/10/Delivery}DeliveryObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "delivery:Reference": { - "$ref": "#/$defs/Reference" - }, - "delivery:DeliveryID": { - "$ref": "ts_103280_2017_07#/$defs/UUID" - }, - "delivery:SequenceNumber": { - "type": "integer", - "minimum": 0 - }, - "delivery:LastSequence": { - "type": "boolean" - }, - "delivery:Manifest": { - "$ref": "#/$defs/Manifest" - }, - "delivery:Delivery": { - "$ref": "#/$defs/Delivery" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "Reference": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:LDID": { - "$ref": "ts_103280_2017_07#/$defs/LDID" - } - }, - "required": [ - "delivery:LDID" - ] - }, - { - "type": "object", - "properties": { - "delivery:LIID": { - "$ref": "ts_103280_2017_07#/$defs/LIID" - } - }, - "required": [ - "delivery:LIID" - ] - } - ] - }, - "Manifest": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:Specification": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - }, - "required": [ - "delivery:Specification" - ] - }, - { - "type": "object", - "properties": { - "delivery:ExternalSchema": { - "$ref": "#/$defs/ExternalSchema" - } - }, - "required": [ - "delivery:ExternalSchema" - ] - } - ] - }, - "ExternalSchema": { - "type": "object", - "properties": { - "delivery:ManifestID": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "delivery:ManifestContents": { - "$ref": "#/$defs/ManifestContents" - } - }, - "required": [] - }, - "ManifestContents": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:BinaryData": { - "$ref": "#/$defs/EmbeddedBinaryData" - } - }, - "required": [ - "delivery:BinaryData" - ] - }, - { - "type": "object", - "properties": { - "delivery:XMLSchema": { - "$ref": "#/$defs/SchemaContent" - } - }, - "required": [ - "delivery:XMLSchema" - ] - } - ] - }, - "SchemaContent": { - "type": "object", - "properties": { - "delivery:schema": {} - }, - "required": [ - "delivery:schema" - ] - }, - "Delivery": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:BinaryData": { - "$ref": "#/$defs/EmbeddedBinaryData" - } - }, - "required": [ - "delivery:BinaryData" - ] - }, - { - "type": "object", - "properties": { - "delivery:XMLData": { - "$ref": "#/$defs/EmbeddedXMLData" - } - }, - "required": [ - "delivery:XMLData" - ] - } - ] - }, - "EmbeddedBinaryData": { - "type": "object", - "properties": { - "delivery:Data": { - "type": "string", - "pattern": "^[-A-Za-z0-9+/]*={0,3}$" - }, - "delivery:ContentType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "delivery:Checksum": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "delivery:ChecksumType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "delivery:Data" - ] - }, - "EmbeddedXMLData": {} - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Document.schema.json b/103120/schema/json/ts_103120_Document.schema.json deleted file mode 100644 index afeb421..0000000 --- a/103120/schema/json/ts_103120_Document.schema.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "$id": "ts_103120_Document_2020_09", - "$defs": { - "DocumentObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Document}DocumentObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "doc:DocumentReference": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "doc:DocumentName": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "doc:DocumentStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:DocumentDesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:DocumentTimespan": { - "$ref": "#/$defs/DocumentTimespan" - }, - "doc:DocumentType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:DocumentProperties": { - "$ref": "#/$defs/DocumentProperties" - }, - "doc:DocumentBody": { - "$ref": "#/$defs/DocumentBody" - }, - "doc:DocumentSignature": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "doc:DocumentInvalidReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "doc:NationalDocumentParameters": { - "$ref": "#/$defs/NationalDocumentParameters" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "DocumentTimespan": { - "type": "object", - "properties": { - "doc:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "doc:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "DocumentProperties": { - "type": "object", - "properties": { - "doc:DocumentProperty": { - "type": "array", - "items": { - "$ref": "#/$defs/DocumentProperty" - } - } - }, - "required": [] - }, - "DocumentProperty": { - "type": "object", - "properties": { - "doc:PropertyType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:PropertyValue": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "doc:PropertyType", - "doc:PropertyValue" - ] - }, - "DocumentBody": { - "type": "object", - "properties": { - "doc:Contents": { - "type": "string", - "pattern": "^[-A-Za-z0-9+/]*={0,3}$" - }, - "doc:ContentType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "doc:Checksum": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "doc:ChecksumType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [] - }, - "NationalDocumentParameters": { - "type": "object", - "properties": { - "doc:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "doc:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Notification.schema.json b/103120/schema/json/ts_103120_Notification.schema.json deleted file mode 100644 index 84fbf04..0000000 --- a/103120/schema/json/ts_103120_Notification.schema.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "$id": "ts_103120_Notification_2016_02", - "$defs": { - "NotificationObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2016/02/Notification}NotificationObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "notification:NotificationDetails": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "notification:NotificationType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "notification:NewNotification": { - "type": "boolean" - }, - "notification:NotificationTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "notification:StatusOfAssociatedObjects": { - "$ref": "#/$defs/ListOfAssociatedObjectStatus" - }, - "notification:NationalNotificationParameters": { - "$ref": "#/$defs/NationalNotificationParameters" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "ListOfAssociatedObjectStatus": { - "type": "object", - "properties": { - "notification:AssociatedObjectStatus": { - "type": "array", - "items": { - "$ref": "#/$defs/AssociatedObjectStatus" - }, - "minItems": 1 - } - }, - "required": [] - }, - "AssociatedObjectStatus": { - "type": "object", - "properties": { - "notification:AssociatedObject": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "notification:Status": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "notification:Details": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "notification:AssociatedObject", - "notification:Status" - ] - }, - "NationalNotificationParameters": { - "type": "object", - "properties": { - "notification:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "notification:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Task.schema.json b/103120/schema/json/ts_103120_Task.schema.json deleted file mode 100644 index 24de4c5..0000000 --- a/103120/schema/json/ts_103120_Task.schema.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "$id": "ts_103120_Task_2020_09", - "$defs": { - "LITaskObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "task:Reference": { - "$ref": "ts_103280_2017_07#/$defs/LIID" - }, - "task:Status": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:DesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:Timespan": { - "$ref": "#/$defs/TaskTimespan" - }, - "task:TargetIdentifier": { - "$ref": "#/$defs/TargetIdentifier" - }, - "task:DeliveryType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:DeliveryDetails": { - "$ref": "#/$defs/TaskDeliveryDetails" - }, - "task:ApprovalDetails": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "task:CSPID": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - }, - "task:HandlingProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:InvalidReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "task:Flags": { - "$ref": "#/$defs/TaskFlags" - }, - "task:NationalLITaskingParameters": { - "$ref": "#/$defs/NationalLITaskingParameters" - }, - "task:ListOfTrafficPolicyReferences": { - "$ref": "#/$defs/ListOfTrafficPolicyReferences" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "TaskTimespan": { - "type": "object", - "properties": { - "task:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:TerminationTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:ProvisioningTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:DeprovisioningTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "TargetIdentifier": { - "type": "object", - "properties": { - "task:TargetIdentifierValues": { - "$ref": "#/$defs/TargetIdentifierValues" - }, - "task:ServiceType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - }, - "required": [] - }, - "TargetIdentifierValues": { - "type": "object", - "properties": { - "task:TargetIdentifierValue": { - "type": "array", - "items": { - "$ref": "#/$defs/TargetIdentifierValue" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TargetIdentifierValue": { - "type": "object", - "properties": { - "task:FormatType": { - "$ref": "#/$defs/FormatType" - }, - "task:Value": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:FormatType", - "task:Value" - ] - }, - "FormatType": { - "type": "object", - "properties": { - "task:FormatOwner": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "task:FormatName": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "task:FormatOwner", - "task:FormatName" - ] - }, - "TaskDeliveryDetails": { - "type": "object", - "properties": { - "task:DeliveryDestination": { - "type": "array", - "items": { - "$ref": "#/$defs/DeliveryDestination" - }, - "minItems": 1 - } - }, - "required": [] - }, - "DeliveryDestination": { - "type": "object", - "properties": { - "task:DeliveryAddress": { - "$ref": "#/$defs/DeliveryAddress" - }, - "task:EncryptionDetails": { - "$ref": "#/$defs/NationalEncryptionDetails" - }, - "task:IRIorCC": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:HandoverFormat": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:DeliveryProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:NationalDeliveryParameters": { - "$ref": "#/$defs/NationalDeliveryParameters" - } - }, - "required": [] - }, - "DeliveryAddress": { - "oneOf": [ - { - "type": "object", - "properties": { - "task:IPv4Address": { - "$ref": "ts_103280_2017_07#/$defs/IPv4Address" - } - }, - "required": [ - "task:IPv4Address" - ] - }, - { - "type": "object", - "properties": { - "task:IPv6Address": { - "$ref": "ts_103280_2017_07#/$defs/IPv6Address" - } - }, - "required": [ - "task:IPv6Address" - ] - }, - { - "type": "object", - "properties": { - "task:IPAddressPort": { - "$ref": "ts_103280_2017_07#/$defs/IPAddressPort" - } - }, - "required": [ - "task:IPAddressPort" - ] - }, - { - "type": "object", - "properties": { - "task:IPAddressPortRange": { - "$ref": "ts_103280_2017_07#/$defs/IPAddressPortRange" - } - }, - "required": [ - "task:IPAddressPortRange" - ] - }, - { - "type": "object", - "properties": { - "task:E164Number": { - "$ref": "ts_103280_2017_07#/$defs/InternationalE164" - } - }, - "required": [ - "task:E164Number" - ] - }, - { - "type": "object", - "properties": { - "task:FTPAddress": { - "type": "string" - } - }, - "required": [ - "task:FTPAddress" - ] - }, - { - "type": "object", - "properties": { - "task:URL": { - "type": "string" - } - }, - "required": [ - "task:URL" - ] - }, - { - "type": "object", - "properties": { - "task:FQDN": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:FQDN" - ] - }, - { - "type": "object", - "properties": { - "task:EmailAddress": { - "$ref": "ts_103280_2017_07#/$defs/EmailAddress" - } - }, - "required": [ - "task:EmailAddress" - ] - }, - { - "type": "object", - "properties": { - "task:EndpointID": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - } - }, - "required": [ - "task:EndpointID" - ] - }, - { - "type": "object", - "properties": { - "task:DeliveryInformationID": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:DeliveryInformationID" - ] - } - ] - }, - "TaskFlags": { - "type": "object", - "properties": { - "task:TaskFlag": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - } - }, - "required": [] - }, - "NationalLITaskingParameters": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "NationalDeliveryParameters": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "NationalEncryptionDetails": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "LDTaskObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LDTaskObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "task:Reference": { - "$ref": "ts_103280_2017_07#/$defs/LDID" - }, - "task:Status": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:StatusReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "task:DesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:RequestDetails": { - "$ref": "#/$defs/RequestDetails" - }, - "task:DeliveryDetails": { - "$ref": "#/$defs/LDDeliveryDetails" - }, - "task:ApprovalDetails": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "task:CSPID": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - }, - "task:HandlingProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:Flags": { - "$ref": "#/$defs/LDTaskFlags" - }, - "task:NationalLDTaskingParameters": { - "$ref": "#/$defs/NationalLDTaskingParameters" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "RequestDetails": { - "type": "object", - "properties": { - "task:Type": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:ObservedTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:ObservedTimes": { - "type": "array", - "items": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "task:RequestValues": { - "$ref": "#/$defs/RequestValues" - }, - "task:Subtype": { - "$ref": "#/$defs/RequestSubtype" - } - }, - "required": [] - }, - "RequestValues": { - "type": "object", - "properties": { - "task:RequestValue": { - "type": "array", - "items": { - "$ref": "#/$defs/RequestValue" - }, - "minItems": 1 - } - }, - "required": [] - }, - "RequestValue": { - "type": "object", - "properties": { - "task:FormatType": { - "$ref": "#/$defs/FormatType" - }, - "task:Value": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:FormatType", - "task:Value" - ] - }, - "RequestSubtype": { - "type": "object", - "properties": { - "task:RequestSubtype": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "minItems": 1 - } - }, - "required": [] - }, - "LDDeliveryDetails": { - "type": "object", - "properties": { - "task:LDDeliveryDestination": { - "type": "array", - "items": { - "$ref": "#/$defs/LDDeliveryDestination" - }, - "minItems": 1 - } - }, - "required": [] - }, - "LDDeliveryDestination": { - "type": "object", - "properties": { - "task:DeliveryAddress": { - "$ref": "#/$defs/DeliveryAddress" - }, - "task:EncryptionDetails": { - "$ref": "#/$defs/NationalEncryptionDetails" - }, - "task:LDHandoverFormat": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:LDDeliveryProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:NationalDeliveryParameters": { - "$ref": "#/$defs/NationalDeliveryParameters" - } - }, - "required": [] - }, - "LDTaskFlags": { - "type": "object", - "properties": { - "task:LDTaskFlag": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - } - }, - "required": [] - }, - "NationalLDTaskingParameters": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "ListOfTrafficPolicyReferences": { - "type": "object", - "properties": { - "task:TrafficPolicyReference": { - "type": "array", - "items": { - "$ref": "#/$defs/TrafficPolicyReference" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TrafficPolicyReference": { - "type": "object", - "properties": { - "task:Order": { - "type": "integer", - "minimum": 1 - }, - "task:ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - } - }, - "required": [] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_TrafficPolicy.schema.json b/103120/schema/json/ts_103120_TrafficPolicy.schema.json deleted file mode 100644 index 1d9619e..0000000 --- a/103120/schema/json/ts_103120_TrafficPolicy.schema.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "$id": "ts_103120_TrafficPolicy_2022_07", - "$defs": { - "TrafficPolicyObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficPolicyObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "tp:TrafficPolicyName": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "tp:TrafficRules": { - "$ref": "#/$defs/ListOfTrafficRuleReferences" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "ListOfTrafficRuleReferences": { - "type": "object", - "properties": { - "tp:TrafficRuleReference": { - "type": "array", - "items": { - "$ref": "#/$defs/TrafficRuleReference" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TrafficRuleReference": { - "type": "object", - "properties": { - "tp:Order": { - "type": "integer", - "minimum": 1 - }, - "tp:ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - } - }, - "required": [ - "tp:Order", - "tp:ObjectIdentifier" - ] - }, - "TrafficRuleObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficRuleObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "tp:Criteria": { - "$ref": "#/$defs/ListOfTrafficCriteria" - }, - "tp:Action": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "ListOfTrafficCriteria": { - "type": "object", - "properties": { - "tp:Criteria": { - "type": "array", - "items": { - "$ref": "#/$defs/TrafficCriteria" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TrafficCriteria": { - "oneOf": [ - { - "type": "object", - "properties": { - "tp:IPPolicyCriteria": { - "$ref": "#/$defs/IPPolicyCriteria" - } - }, - "required": [ - "tp:IPPolicyCriteria" - ] - }, - { - "type": "object", - "properties": { - "tp:MobileAccessPolicyCriteria": { - "$ref": "#/$defs/MobileAccessPolicyCriteria" - } - }, - "required": [ - "tp:MobileAccessPolicyCriteria" - ] - } - ] - }, - "IPPolicyCriteria": { - "type": "object", - "properties": { - "tp:IPProtocol": { - "type": "integer", - "minimum": 0 - }, - "tp:SourceIPRange": { - "$ref": "ts_103280_2017_07#/$defs/IPCIDR" - }, - "tp:SourcePortRange": { - "$ref": "ts_103280_2017_07#/$defs/PortRange" - }, - "tp:DestinationIPRange": { - "$ref": "ts_103280_2017_07#/$defs/IPCIDR" - }, - "tp:DestinationPortRange": { - "$ref": "ts_103280_2017_07#/$defs/PortRange" - }, - "tp:BothDirections": { - "type": "boolean" - } - }, - "required": [] - }, - "MobileAccessPolicyCriteria": { - "type": "object", - "properties": { - "tp:APN": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "tp:DNN": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [] - } - } -} \ No newline at end of file -- GitLab From c59057ecc287494c907a905636e8002c7c1dc082 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 8 Jun 2023 16:59:13 +0100 Subject: [PATCH 17/22] Removing artefact --- ...ce_diff_blocks_instead_of_track_changes.docx | Bin 36570 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Update_artefacts_to_produce_diff_blocks_instead_of_track_changes.docx diff --git a/Update_artefacts_to_produce_diff_blocks_instead_of_track_changes.docx b/Update_artefacts_to_produce_diff_blocks_instead_of_track_changes.docx deleted file mode 100644 index 74b1d0ec85080a6d16d974d4c00ebabeba589c59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36570 zcmagFWmp}_wm*!!dvJmUm*DPh!6mr6ySqyuxCVE3cY-H4!QGt=Z1le~bLQNcbMAfL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(%9tzQp624EzoT z3*sCFXGp;TgrVex#PjWy$B!}5D1v#n&)xg)c8YF|AGa32eR?2syWhrx0tEVVhbl26 zm|Fc3lt{OH$PuZj0}pUIZc_S#XZRO`6I?Z_PvC22n>5oh$stx#Y-f105b6``FV|ZMD>601h?CdYzs`1S$~(00U-Gre z1(kX5f|gb;K38p7LJm+~**jbOt`6ITEf&zvBl?OmD`*!F&nBp2k4rNHdW5}y*8Ft4 z!c`?AD^EDjs=46l&^W!I7^d_G)FWp3Vp*MkZ9Ql3D^bqF{LWSd*{1?5@ykgL^Yj4> zm~4a$OLzcTm|TDb#O$v;Pf-I`nr%*sJHY`8MzFM3*c>fL)RseJzZG)7s&r@_gq(0v zeXx^^!GQOKI4gV^aO1Xz*nw-rPmMrN8Z*F4`R;uhJ^ zF0f$e2A$}3-E$1Bra(_1jSoVjC+X+m4G!jG4U*$q%?FQ?pi?e4NwY$K0QUDrT@NiX zH;=|k{$h2Tl+{`CqswdgB4EI)YPcm~p2f?mgiAG7t!+V1D&b>1zHR-5CRSpKcM@vZN#0`C`- zg9ZSR@GNld@p74ER@q*eii@^TrSzbzpRN(Dq}$-R^q>L$G1cF0p5&EBH-b14u*i{ z6JcwEmQI`sY@wb4j=6!l9Wc-U6k}kBb_Naxr{{r&$EY=4$g+o~x_)$zU1P;oB9a3CUnUe~hu0#(5 z^aCYf`WqN8TB2x1J6;mq9Q1ioggH+6FmsS5QP8!cPrM+s8x%veqfNu0n}9wMfiNMd z1Zo1xv;?|-^igAk{;y?F{pe%J=tiLTzY#{ftHs(IM>hbyql+-$SRJwf*t)&wW}){T z5oYbLM>Y$!Cy8zfdRGf!%C!b)sGxMb(DkFY2NC)UTadCCYU?n-n-!RYK)FhgArY88 IlDj}W0H0VWLjV8( -- GitLab From b10726b4584d9f54a1ffeaab2a535281ff004a55 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 8 Jun 2023 16:59:34 +0100 Subject: [PATCH 18/22] Removing extra schema fragment --- utils/request.fragment.schema.json | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 utils/request.fragment.schema.json diff --git a/utils/request.fragment.schema.json b/utils/request.fragment.schema.json deleted file mode 100644 index dc2bb14..0000000 --- a/utils/request.fragment.schema.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$id": "fragment_request", - "$ref" : "#/$defs/RequestPayload" -} \ No newline at end of file -- GitLab From 11906096a48e1d5b50769216269e3e2e03978f6f Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 9 Jun 2023 10:55:42 +0100 Subject: [PATCH 19/22] Fixing regex --- 103120/schema/json/TS_103_280.schema.json | 389 ++++++++++++ .../json/ts_103120_Authorisation.schema.json | 148 +++++ .../schema/json/ts_103120_Common.schema.json | 164 +++++ 103120/schema/json/ts_103120_Core.schema.json | 590 +++++++++++++++++ .../json/ts_103120_Delivery.schema.json | 209 ++++++ .../json/ts_103120_Document.schema.json | 148 +++++ .../json/ts_103120_Notification.schema.json | 103 +++ 103120/schema/json/ts_103120_Task.schema.json | 599 ++++++++++++++++++ .../json/ts_103120_TrafficPolicy.schema.json | 198 ++++++ 103280/TS_103_280.schema.json | 80 +-- utils/translate/TypeMapping.py | 6 +- utils/xml_to_json.py | 14 +- 12 files changed, 2599 insertions(+), 49 deletions(-) create mode 100644 103120/schema/json/TS_103_280.schema.json create mode 100644 103120/schema/json/ts_103120_Authorisation.schema.json create mode 100644 103120/schema/json/ts_103120_Common.schema.json create mode 100644 103120/schema/json/ts_103120_Core.schema.json create mode 100644 103120/schema/json/ts_103120_Delivery.schema.json create mode 100644 103120/schema/json/ts_103120_Document.schema.json create mode 100644 103120/schema/json/ts_103120_Notification.schema.json create mode 100644 103120/schema/json/ts_103120_Task.schema.json create mode 100644 103120/schema/json/ts_103120_TrafficPolicy.schema.json diff --git a/103120/schema/json/TS_103_280.schema.json b/103120/schema/json/TS_103_280.schema.json new file mode 100644 index 0000000..02cd078 --- /dev/null +++ b/103120/schema/json/TS_103_280.schema.json @@ -0,0 +1,389 @@ +{ + "$id": "ts_103280_2017_07", + "$defs": { + "ShortString": { + "type": "string", + "maxLength": 255 + }, + "LongString": { + "type": "string", + "maxLength": 65535 + }, + "LIID": { + "type": "string", + "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" + }, + "UTCDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" + }, + "UTCMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" + }, + "QualifiedDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "QualifiedMicrosecondDateTime": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" + }, + "InternationalE164": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "IMSI": { + "type": "string", + "pattern": "^[0-9]{6,15}$" + }, + "IMEI": { + "type": "string", + "pattern": "^[0-9]{14}$" + }, + "IMEICheckDigit": { + "type": "string", + "pattern": "^[0-9]{15}$" + }, + "IMEISV": { + "type": "string", + "pattern": "^[0-9]{16}$" + }, + "IPv4Address": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" + }, + "IPv4CIDR": { + "type": "string", + "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" + }, + "IPv6Address": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" + }, + "IPv6CIDR": { + "type": "string", + "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" + }, + "TCPPort": { + "type": "integer", + "exclusiveMinimum": 1, + "maximum": 65535 + }, + "UDPPort": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "MACAddress": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" + }, + "EmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" + } + ] + }, + "UUID": { + "type": "string", + "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, + "ISOCountryCode": { + "type": "string", + "pattern": "^[A-Z]{2}$" + }, + "SIPURI": { + "type": "string", + "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "TELURI": { + "type": "string", + "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" + }, + "WGS84LatitudeDecimal": { + "type": "string", + "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" + }, + "WGS84LongitudeDecimal": { + "type": "string", + "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" + }, + "WGS84LatitudeAngular": { + "type": "string", + "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" + }, + "WGS84LongitudeAngular": { + "type": "string", + "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" + }, + "SUPIIMSI": { + "$ref": "#/$defs/IMSI" + }, + "SUPINAI": { + "$ref": "#/$defs/NAI" + }, + "SUCI": { + "type": "string", + "pattern": "^([a-fA-F0-9]{2})*$" + }, + "PEIIMEI": { + "$ref": "#/$defs/IMEI" + }, + "PEIIMEICheckDigit": { + "$ref": "#/$defs/IMEICheckDigit" + }, + "PEIIMEISV": { + "$ref": "#/$defs/IMEISV" + }, + "GPSIMSISDN": { + "type": "string", + "pattern": "^[0-9]{1,15}$" + }, + "GPSINAI": { + "$ref": "#/$defs/NAI" + }, + "NAI": { + "type": "string" + }, + "LDID": { + "type": "string", + "pattern": "^([A-Z]{2}-.+-.+)$" + }, + "InternationalizedEmailAddress": { + "allOf": [ + { + "$ref": "#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^.+@.+$" + } + ] + }, + "EUI64": { + "type": "string", + "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" + }, + "CGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" + }, + "ECGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" + }, + "NCGI": { + "type": "string", + "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" + }, + "ICCID": { + "type": "string", + "pattern": "^[0-9]{19,20}$" + }, + "IPProtocol": { + "type": "integer", + "minimum": 0, + "maximum": 255 + }, + "IPAddress": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:IPv4Address": { + "$ref": "#/$defs/IPv4Address" + } + }, + "required": [ + "etsi280:IPv4Address" + ] + }, + { + "type": "object", + "properties": { + "etsi280:IPv6Address": { + "$ref": "#/$defs/IPv6Address" + } + }, + "required": [ + "etsi280:IPv6Address" + ] + } + ] + }, + "IPCIDR": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:IPv4CIDR": { + "$ref": "#/$defs/IPv4CIDR" + } + }, + "required": [ + "etsi280:IPv4CIDR" + ] + }, + { + "type": "object", + "properties": { + "etsi280:IPv6CIDR": { + "$ref": "#/$defs/IPv6CIDR" + } + }, + "required": [ + "etsi280:IPv6CIDR" + ] + } + ] + }, + "TCPPortRange": { + "type": "object", + "properties": { + "etsi280:start": { + "$ref": "#/$defs/TCPPort" + }, + "etsi280:end": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "etsi280:start", + "etsi280:end" + ] + }, + "UDPPortRange": { + "type": "object", + "properties": { + "etsi280:start": { + "$ref": "#/$defs/UDPPort" + }, + "etsi280:end": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "etsi280:start", + "etsi280:end" + ] + }, + "Port": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:TCPPort": { + "$ref": "#/$defs/TCPPort" + } + }, + "required": [ + "etsi280:TCPPort" + ] + }, + { + "type": "object", + "properties": { + "etsi280:UDPPort": { + "$ref": "#/$defs/UDPPort" + } + }, + "required": [ + "etsi280:UDPPort" + ] + } + ] + }, + "PortRange": { + "oneOf": [ + { + "type": "object", + "properties": { + "etsi280:TCPPortRange": { + "$ref": "#/$defs/TCPPortRange" + } + }, + "required": [ + "etsi280:TCPPortRange" + ] + }, + { + "type": "object", + "properties": { + "etsi280:UDPPortRange": { + "$ref": "#/$defs/UDPPortRange" + } + }, + "required": [ + "etsi280:UDPPortRange" + ] + } + ] + }, + "IPAddressPort": { + "type": "object", + "properties": { + "etsi280:address": { + "$ref": "#/$defs/IPAddress" + }, + "etsi280:port": { + "$ref": "#/$defs/Port" + } + }, + "required": [ + "etsi280:address", + "etsi280:port" + ] + }, + "IPAddressPortRange": { + "type": "object", + "properties": { + "etsi280:address": { + "$ref": "#/$defs/IPAddress" + }, + "etsi280:portRange": { + "$ref": "#/$defs/PortRange" + } + }, + "required": [ + "etsi280:address", + "etsi280:portRange" + ] + }, + "WGS84CoordinateDecimal": { + "type": "object", + "properties": { + "etsi280:latitude": { + "$ref": "#/$defs/WGS84LatitudeDecimal" + }, + "etsi280:longitude": { + "$ref": "#/$defs/WGS84LongitudeDecimal" + } + }, + "required": [ + "etsi280:latitude", + "etsi280:longitude" + ] + }, + "WGS84CoordinateAngular": { + "type": "object", + "properties": { + "etsi280:latitude": { + "$ref": "#/$defs/WGS84LatitudeAngular" + }, + "etsi280:longitude": { + "$ref": "#/$defs/WGS84LongitudeAngular" + } + }, + "required": [ + "etsi280:latitude", + "etsi280:longitude" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Authorisation.schema.json b/103120/schema/json/ts_103120_Authorisation.schema.json new file mode 100644 index 0000000..1c9a68f --- /dev/null +++ b/103120/schema/json/ts_103120_Authorisation.schema.json @@ -0,0 +1,148 @@ +{ + "$id": "ts_103120_Authorisation_2020_09", + "$defs": { + "AuthorisationObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "auth:AuthorisationReference": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "auth:AuthorisationLegalType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "auth:AuthorisationPriority": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "auth:AuthorisationStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "auth:AuthorisationDesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "auth:AuthorisationTimespan": { + "$ref": "#/$defs/AuthorisationTimespan" + }, + "auth:AuthorisationCSPID": { + "$ref": "#/$defs/AuthorisationCSPID" + }, + "auth:AuthorisationCreationTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "auth:AuthorisationServedTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "auth:AuthorisationTerminationTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "auth:AuthorisationApprovalDetails": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "auth:AuthorisationInvalidReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "auth:AuthorisationFlags": { + "$ref": "#/$defs/AuthorisationFlags" + }, + "auth:AuthorisationManualInformation": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "auth:NationalAuthorisationParameters": { + "$ref": "#/$defs/NationalAuthorisationParameters" + }, + "auth:AuthorisationJurisdiction": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "auth:AuthorisationTypeOfCase": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "auth:AuthorisationLegalEntity": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "AuthorisationFlags": { + "type": "object", + "properties": { + "auth:AuthorisationFlag": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + } + }, + "required": [] + }, + "AuthorisationTimespan": { + "type": "object", + "properties": { + "auth:StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "auth:EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "AuthorisationCSPID": { + "type": "object", + "properties": { + "auth:CSPID": { + "type": "array", + "items": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + }, + "minItems": 1 + } + }, + "required": [] + }, + "NationalAuthorisationParameters": { + "type": "object", + "properties": { + "auth:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "auth:CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Common.schema.json b/103120/schema/json/ts_103120_Common.schema.json new file mode 100644 index 0000000..d11b4b4 --- /dev/null +++ b/103120/schema/json/ts_103120_Common.schema.json @@ -0,0 +1,164 @@ +{ + "$id": "ts_103120_Common_2016_02", + "$defs": { + "ETSIVersion": { + "allOf": [ + { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + { + "type": "string", + "pattern": "^V\\d+\\.\\d+\\.\\d+$" + } + ] + }, + "DictionaryEntry": { + "type": "object", + "properties": { + "common:Owner": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "common:Name": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "common:Value": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "common:Owner", + "common:Name", + "common:Value" + ] + }, + "ApprovalDetails": { + "type": "object", + "properties": { + "common:ApprovalType": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "common:ApprovalDescription": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "common:ApprovalReference": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "common:ApproverDetails": { + "$ref": "#/$defs/ApproverDetails" + }, + "common:ApprovalTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "common:ApprovalIsEmergency": { + "type": "boolean" + }, + "common:ApprovalDigitalSignature": { + "$ref": "#/$defs/ApprovalDigitalSignature" + }, + "common:ApprovalNationalDetails": { + "$ref": "#/$defs/ApprovalNationalDetails" + } + }, + "required": [] + }, + "ApproverDetails": { + "type": "object", + "properties": { + "common:ApproverName": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "common:ApproverRole": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "common:ApproverIdentity": { + "$ref": "#/$defs/ApproverIdentity" + }, + "common:ApproverContactDetails": { + "type": "array", + "items": { + "$ref": "#/$defs/ApproverContactDetails" + } + } + }, + "required": [] + }, + "ApproverIdentity": { + "oneOf": [ + { + "type": "object", + "properties": { + "common:NationalApproverIdentity": { + "$ref": "#/$defs/NationalApproverIdentity" + } + }, + "required": [ + "common:NationalApproverIdentity" + ] + } + ] + }, + "ApproverContactDetails": { + "type": "object", + "properties": { + "common:ApproverAlternateName": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "common:ApproverEmailAddress": { + "$ref": "ts_103280_2017_07#/$defs/InternationalizedEmailAddress" + }, + "common:ApproverPhoneNumber": { + "$ref": "ts_103280_2017_07#/$defs/InternationalE164" + } + }, + "required": [] + }, + "NationalApproverIdentity": { + "type": "object", + "properties": { + "common:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "common:CountryCode" + ] + }, + "ApprovalDigitalSignature": { + "oneOf": [ + { + "type": "object", + "properties": { + "common:NationalDigitalSignature": { + "$ref": "#/$defs/NationalDigitalSignature" + } + }, + "required": [ + "common:NationalDigitalSignature" + ] + } + ] + }, + "ApprovalNationalDetails": { + "type": "object", + "properties": { + "common:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "common:CountryCode" + ] + }, + "NationalDigitalSignature": { + "type": "object", + "properties": { + "common:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "common:CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Core.schema.json b/103120/schema/json/ts_103120_Core.schema.json new file mode 100644 index 0000000..f116d31 --- /dev/null +++ b/103120/schema/json/ts_103120_Core.schema.json @@ -0,0 +1,590 @@ +{ + "$id": "ts_103120_Core_2019_10", + "$defs": { + "ObjectIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/UUID" + }, + "HI1Message": { + "type": "object", + "properties": { + "Header": { + "$ref": "#/$defs/MessageHeader" + }, + "Payload": { + "$ref": "#/$defs/MessagePayload" + }, + "Signature": {}, + "xmldsig:Signature": { + "$ref": "www.w3.org_2000_09_xmldsig##/$defs/SignatureType" + } + }, + "required": [ + "Header", + "Payload" + ] + }, + "MessageHeader": { + "type": "object", + "properties": { + "SenderIdentifier": { + "$ref": "#/$defs/EndpointID" + }, + "ReceiverIdentifier": { + "$ref": "#/$defs/EndpointID" + }, + "TransactionIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/UUID" + }, + "Timestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedMicrosecondDateTime" + }, + "Version": { + "$ref": "#/$defs/Version" + } + }, + "required": [ + "SenderIdentifier", + "ReceiverIdentifier", + "TransactionIdentifier", + "Timestamp", + "Version" + ] + }, + "Version": { + "type": "object", + "properties": { + "ETSIVersion": { + "$ref": "ts_103120_Common_2016_02#/$defs/ETSIVersion" + }, + "NationalProfileOwner": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "NationalProfileVersion": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "ETSIVersion", + "NationalProfileOwner", + "NationalProfileVersion" + ] + }, + "EndpointID": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "UniqueIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "CountryCode", + "UniqueIdentifier" + ] + }, + "MessagePayload": { + "oneOf": [ + { + "type": "object", + "properties": { + "RequestPayload": { + "$ref": "#/$defs/RequestPayload" + } + }, + "required": [ + "RequestPayload" + ] + }, + { + "type": "object", + "properties": { + "ResponsePayload": { + "$ref": "#/$defs/ResponsePayload" + } + }, + "required": [ + "ResponsePayload" + ] + } + ] + }, + "RequestPayload": { + "type": "object", + "properties": { + "ActionRequests": { + "$ref": "#/$defs/ActionRequests" + } + }, + "required": [ + "ActionRequests" + ] + }, + "ActionRequests": { + "type": "object", + "properties": { + "ActionRequest": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionRequest" + }, + "minItems": 1 + } + }, + "required": [] + }, + "ResponsePayload": { + "oneOf": [ + { + "type": "object", + "properties": { + "ActionResponses": { + "$ref": "#/$defs/ActionResponses" + } + }, + "required": [ + "ActionResponses" + ] + }, + { + "type": "object", + "properties": { + "ErrorInformation": { + "$ref": "#/$defs/ActionUnsuccesfulInformation" + } + }, + "required": [ + "ErrorInformation" + ] + } + ] + }, + "ActionResponses": { + "type": "object", + "properties": { + "ActionResponse": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionResponse" + }, + "minItems": 1 + } + }, + "required": [] + }, + "ActionRequest": { + "allOf": [ + { + "type": "object", + "properties": { + "ActionIdentifier": { + "type": "integer", + "minimum": 0 + } + }, + "required": [ + "ActionIdentifier" + ] + }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "GET": { + "$ref": "#/$defs/GETRequest" + } + }, + "required": [ + "GET" + ] + }, + { + "type": "object", + "properties": { + "CREATE": { + "$ref": "#/$defs/CREATERequest" + } + }, + "required": [ + "CREATE" + ] + }, + { + "type": "object", + "properties": { + "UPDATE": { + "$ref": "#/$defs/UPDATERequest" + } + }, + "required": [ + "UPDATE" + ] + }, + { + "type": "object", + "properties": { + "LIST": { + "$ref": "#/$defs/LISTRequest" + } + }, + "required": [ + "LIST" + ] + }, + { + "type": "object", + "properties": { + "DELIVER": { + "$ref": "#/$defs/DELIVERRequest" + } + }, + "required": [ + "DELIVER" + ] + } + ] + } + ] + }, + "ActionResponse": { + "allOf": [ + { + "type": "object", + "properties": { + "ActionIdentifier": { + "type": "integer", + "minimum": 0 + } + }, + "required": [ + "ActionIdentifier" + ] + }, + { + "oneOf": [ + { + "type": "object", + "properties": { + "GETResponse": { + "$ref": "#/$defs/GETResponse" + } + }, + "required": [ + "GETResponse" + ] + }, + { + "type": "object", + "properties": { + "CREATEResponse": { + "$ref": "#/$defs/CREATEResponse" + } + }, + "required": [ + "CREATEResponse" + ] + }, + { + "type": "object", + "properties": { + "UPDATEResponse": { + "$ref": "#/$defs/UPDATEResponse" + } + }, + "required": [ + "UPDATEResponse" + ] + }, + { + "type": "object", + "properties": { + "LISTResponse": { + "$ref": "#/$defs/LISTResponse" + } + }, + "required": [ + "LISTResponse" + ] + }, + { + "type": "object", + "properties": { + "ErrorInformation": { + "$ref": "#/$defs/ActionUnsuccesfulInformation" + } + }, + "required": [ + "ErrorInformation" + ] + }, + { + "type": "object", + "properties": { + "DELIVERResponse": { + "$ref": "#/$defs/DELIVERResponse" + } + }, + "required": [ + "DELIVERResponse" + ] + } + ] + } + ] + }, + "GETRequest": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + } + }, + "required": [ + "Identifier" + ] + }, + "GETResponse": { + "type": "object", + "properties": { + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "HI1Object" + ] + }, + "CREATERequest": { + "type": "object", + "properties": { + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "HI1Object" + ] + }, + "CREATEResponse": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "Identifier" + ] + }, + "UPDATERequest": { + "type": "object", + "properties": { + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "HI1Object" + ] + }, + "UPDATEResponse": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "Identifier" + ] + }, + "LISTRequest": { + "type": "object", + "properties": { + "ObjectType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "LISTResponse": { + "type": "object", + "properties": { + "ListResponseRecord": { + "type": "array", + "items": { + "$ref": "#/$defs/ListResponseRecord" + } + } + }, + "required": [] + }, + "ListResponseRecord": { + "type": "object", + "properties": { + "ObjectType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [ + "ObjectType", + "Identifier", + "Generation" + ] + }, + "ActionUnsuccesfulInformation": { + "type": "object", + "properties": { + "ErrorCode": { + "type": "integer", + "minimum": 0 + }, + "ErrorDescription": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "ErrorCode", + "ErrorDescription" + ] + }, + "DELIVERRequest": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "HI1Object": { + "$ref": "#/$defs/ConcreteHI1Object" + } + }, + "required": [ + "Identifier", + "HI1Object" + ] + }, + "DELIVERResponse": { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/$defs/ObjectIdentifier" + } + }, + "required": [ + "Identifier" + ] + }, + "HI1Object": { + "type": "object", + "properties": { + "ObjectIdentifier": { + "$ref": "#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "#/$defs/NationalHandlingParameters" + } + }, + "required": [ + "ObjectIdentifier" + ] + }, + "AssociatedObjects": { + "type": "object", + "properties": { + "AssociatedObject": { + "type": "array", + "items": { + "$ref": "#/$defs/ObjectIdentifier" + } + } + }, + "required": [] + }, + "NationalHandlingParameters": { + "type": "object", + "properties": { + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "CountryCode" + ] + }, + "ConcreteHI1Object": { + "oneOf": [ + { + "$ref": "ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject" + }, + { + "$ref": "ts_103120_Task_2020_09#/$defs/LITaskObject" + }, + { + "$ref": "ts_103120_Task_2020_09#/$defs/LDTaskObject" + }, + { + "$ref": "ts_103120_Document_2020_09#/$defs/DocumentObject" + }, + { + "$ref": "ts_103120_Notification_2016_02#/$defs/NotificationObject" + }, + { + "$ref": "ts_103120_Delivery_2019_10#/$defs/DeliveryObject" + }, + { + "$ref": "ts_103120_TrafficPolicy_2022_07#/$defs/TrafficPolicyObject" + } + ] + } + }, + "$ref": "#/$defs/HI1Message" +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Delivery.schema.json b/103120/schema/json/ts_103120_Delivery.schema.json new file mode 100644 index 0000000..093d127 --- /dev/null +++ b/103120/schema/json/ts_103120_Delivery.schema.json @@ -0,0 +1,209 @@ +{ + "$id": "ts_103120_Delivery_2019_10", + "$defs": { + "DeliveryObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2019/10/Delivery}DeliveryObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "delivery:Reference": { + "$ref": "#/$defs/Reference" + }, + "delivery:DeliveryID": { + "$ref": "ts_103280_2017_07#/$defs/UUID" + }, + "delivery:SequenceNumber": { + "type": "integer", + "minimum": 0 + }, + "delivery:LastSequence": { + "type": "boolean" + }, + "delivery:Manifest": { + "$ref": "#/$defs/Manifest" + }, + "delivery:Delivery": { + "$ref": "#/$defs/Delivery" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "Reference": { + "oneOf": [ + { + "type": "object", + "properties": { + "delivery:LDID": { + "$ref": "ts_103280_2017_07#/$defs/LDID" + } + }, + "required": [ + "delivery:LDID" + ] + }, + { + "type": "object", + "properties": { + "delivery:LIID": { + "$ref": "ts_103280_2017_07#/$defs/LIID" + } + }, + "required": [ + "delivery:LIID" + ] + } + ] + }, + "Manifest": { + "oneOf": [ + { + "type": "object", + "properties": { + "delivery:Specification": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + }, + "required": [ + "delivery:Specification" + ] + }, + { + "type": "object", + "properties": { + "delivery:ExternalSchema": { + "$ref": "#/$defs/ExternalSchema" + } + }, + "required": [ + "delivery:ExternalSchema" + ] + } + ] + }, + "ExternalSchema": { + "type": "object", + "properties": { + "delivery:ManifestID": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "delivery:ManifestContents": { + "$ref": "#/$defs/ManifestContents" + } + }, + "required": [] + }, + "ManifestContents": { + "oneOf": [ + { + "type": "object", + "properties": { + "delivery:BinaryData": { + "$ref": "#/$defs/EmbeddedBinaryData" + } + }, + "required": [ + "delivery:BinaryData" + ] + }, + { + "type": "object", + "properties": { + "delivery:XMLSchema": { + "$ref": "#/$defs/SchemaContent" + } + }, + "required": [ + "delivery:XMLSchema" + ] + } + ] + }, + "SchemaContent": { + "type": "object", + "properties": { + "delivery:schema": {} + }, + "required": [ + "delivery:schema" + ] + }, + "Delivery": { + "oneOf": [ + { + "type": "object", + "properties": { + "delivery:BinaryData": { + "$ref": "#/$defs/EmbeddedBinaryData" + } + }, + "required": [ + "delivery:BinaryData" + ] + }, + { + "type": "object", + "properties": { + "delivery:XMLData": { + "$ref": "#/$defs/EmbeddedXMLData" + } + }, + "required": [ + "delivery:XMLData" + ] + } + ] + }, + "EmbeddedBinaryData": { + "type": "object", + "properties": { + "delivery:Data": { + "type": "string", + "pattern": "^[A-Za-z0-9+\\/]*={0,3}$" + }, + "delivery:ContentType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "delivery:Checksum": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "delivery:ChecksumType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "delivery:Data" + ] + }, + "EmbeddedXMLData": {} + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Document.schema.json b/103120/schema/json/ts_103120_Document.schema.json new file mode 100644 index 0000000..d844092 --- /dev/null +++ b/103120/schema/json/ts_103120_Document.schema.json @@ -0,0 +1,148 @@ +{ + "$id": "ts_103120_Document_2020_09", + "$defs": { + "DocumentObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Document}DocumentObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "doc:DocumentReference": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "doc:DocumentName": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "doc:DocumentStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "doc:DocumentDesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "doc:DocumentTimespan": { + "$ref": "#/$defs/DocumentTimespan" + }, + "doc:DocumentType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "doc:DocumentProperties": { + "$ref": "#/$defs/DocumentProperties" + }, + "doc:DocumentBody": { + "$ref": "#/$defs/DocumentBody" + }, + "doc:DocumentSignature": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "doc:DocumentInvalidReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "doc:NationalDocumentParameters": { + "$ref": "#/$defs/NationalDocumentParameters" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "DocumentTimespan": { + "type": "object", + "properties": { + "doc:StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "doc:EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "DocumentProperties": { + "type": "object", + "properties": { + "doc:DocumentProperty": { + "type": "array", + "items": { + "$ref": "#/$defs/DocumentProperty" + } + } + }, + "required": [] + }, + "DocumentProperty": { + "type": "object", + "properties": { + "doc:PropertyType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "doc:PropertyValue": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "doc:PropertyType", + "doc:PropertyValue" + ] + }, + "DocumentBody": { + "type": "object", + "properties": { + "doc:Contents": { + "type": "string", + "pattern": "^[A-Za-z0-9+\\/]*={0,3}$" + }, + "doc:ContentType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "doc:Checksum": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "doc:ChecksumType": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [] + }, + "NationalDocumentParameters": { + "type": "object", + "properties": { + "doc:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "doc:CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Notification.schema.json b/103120/schema/json/ts_103120_Notification.schema.json new file mode 100644 index 0000000..84fbf04 --- /dev/null +++ b/103120/schema/json/ts_103120_Notification.schema.json @@ -0,0 +1,103 @@ +{ + "$id": "ts_103120_Notification_2016_02", + "$defs": { + "NotificationObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2016/02/Notification}NotificationObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "notification:NotificationDetails": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "notification:NotificationType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "notification:NewNotification": { + "type": "boolean" + }, + "notification:NotificationTimestamp": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "notification:StatusOfAssociatedObjects": { + "$ref": "#/$defs/ListOfAssociatedObjectStatus" + }, + "notification:NationalNotificationParameters": { + "$ref": "#/$defs/NationalNotificationParameters" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "ListOfAssociatedObjectStatus": { + "type": "object", + "properties": { + "notification:AssociatedObjectStatus": { + "type": "array", + "items": { + "$ref": "#/$defs/AssociatedObjectStatus" + }, + "minItems": 1 + } + }, + "required": [] + }, + "AssociatedObjectStatus": { + "type": "object", + "properties": { + "notification:AssociatedObject": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "notification:Status": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "notification:Details": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "notification:AssociatedObject", + "notification:Status" + ] + }, + "NationalNotificationParameters": { + "type": "object", + "properties": { + "notification:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "notification:CountryCode" + ] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Task.schema.json b/103120/schema/json/ts_103120_Task.schema.json new file mode 100644 index 0000000..24de4c5 --- /dev/null +++ b/103120/schema/json/ts_103120_Task.schema.json @@ -0,0 +1,599 @@ +{ + "$id": "ts_103120_Task_2020_09", + "$defs": { + "LITaskObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "task:Reference": { + "$ref": "ts_103280_2017_07#/$defs/LIID" + }, + "task:Status": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:DesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:Timespan": { + "$ref": "#/$defs/TaskTimespan" + }, + "task:TargetIdentifier": { + "$ref": "#/$defs/TargetIdentifier" + }, + "task:DeliveryType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:DeliveryDetails": { + "$ref": "#/$defs/TaskDeliveryDetails" + }, + "task:ApprovalDetails": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "task:CSPID": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + }, + "task:HandlingProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:InvalidReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "task:Flags": { + "$ref": "#/$defs/TaskFlags" + }, + "task:NationalLITaskingParameters": { + "$ref": "#/$defs/NationalLITaskingParameters" + }, + "task:ListOfTrafficPolicyReferences": { + "$ref": "#/$defs/ListOfTrafficPolicyReferences" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "TaskTimespan": { + "type": "object", + "properties": { + "task:StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:TerminationTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:ProvisioningTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:DeprovisioningTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "required": [] + }, + "TargetIdentifier": { + "type": "object", + "properties": { + "task:TargetIdentifierValues": { + "$ref": "#/$defs/TargetIdentifierValues" + }, + "task:ServiceType": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + }, + "required": [] + }, + "TargetIdentifierValues": { + "type": "object", + "properties": { + "task:TargetIdentifierValue": { + "type": "array", + "items": { + "$ref": "#/$defs/TargetIdentifierValue" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TargetIdentifierValue": { + "type": "object", + "properties": { + "task:FormatType": { + "$ref": "#/$defs/FormatType" + }, + "task:Value": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "task:FormatType", + "task:Value" + ] + }, + "FormatType": { + "type": "object", + "properties": { + "task:FormatOwner": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "task:FormatName": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [ + "task:FormatOwner", + "task:FormatName" + ] + }, + "TaskDeliveryDetails": { + "type": "object", + "properties": { + "task:DeliveryDestination": { + "type": "array", + "items": { + "$ref": "#/$defs/DeliveryDestination" + }, + "minItems": 1 + } + }, + "required": [] + }, + "DeliveryDestination": { + "type": "object", + "properties": { + "task:DeliveryAddress": { + "$ref": "#/$defs/DeliveryAddress" + }, + "task:EncryptionDetails": { + "$ref": "#/$defs/NationalEncryptionDetails" + }, + "task:IRIorCC": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:HandoverFormat": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:DeliveryProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:NationalDeliveryParameters": { + "$ref": "#/$defs/NationalDeliveryParameters" + } + }, + "required": [] + }, + "DeliveryAddress": { + "oneOf": [ + { + "type": "object", + "properties": { + "task:IPv4Address": { + "$ref": "ts_103280_2017_07#/$defs/IPv4Address" + } + }, + "required": [ + "task:IPv4Address" + ] + }, + { + "type": "object", + "properties": { + "task:IPv6Address": { + "$ref": "ts_103280_2017_07#/$defs/IPv6Address" + } + }, + "required": [ + "task:IPv6Address" + ] + }, + { + "type": "object", + "properties": { + "task:IPAddressPort": { + "$ref": "ts_103280_2017_07#/$defs/IPAddressPort" + } + }, + "required": [ + "task:IPAddressPort" + ] + }, + { + "type": "object", + "properties": { + "task:IPAddressPortRange": { + "$ref": "ts_103280_2017_07#/$defs/IPAddressPortRange" + } + }, + "required": [ + "task:IPAddressPortRange" + ] + }, + { + "type": "object", + "properties": { + "task:E164Number": { + "$ref": "ts_103280_2017_07#/$defs/InternationalE164" + } + }, + "required": [ + "task:E164Number" + ] + }, + { + "type": "object", + "properties": { + "task:FTPAddress": { + "type": "string" + } + }, + "required": [ + "task:FTPAddress" + ] + }, + { + "type": "object", + "properties": { + "task:URL": { + "type": "string" + } + }, + "required": [ + "task:URL" + ] + }, + { + "type": "object", + "properties": { + "task:FQDN": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "task:FQDN" + ] + }, + { + "type": "object", + "properties": { + "task:EmailAddress": { + "$ref": "ts_103280_2017_07#/$defs/EmailAddress" + } + }, + "required": [ + "task:EmailAddress" + ] + }, + { + "type": "object", + "properties": { + "task:EndpointID": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + } + }, + "required": [ + "task:EndpointID" + ] + }, + { + "type": "object", + "properties": { + "task:DeliveryInformationID": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "task:DeliveryInformationID" + ] + } + ] + }, + "TaskFlags": { + "type": "object", + "properties": { + "task:TaskFlag": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + } + }, + "required": [] + }, + "NationalLITaskingParameters": { + "type": "object", + "properties": { + "task:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "task:CountryCode" + ] + }, + "NationalDeliveryParameters": { + "type": "object", + "properties": { + "task:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "task:CountryCode" + ] + }, + "NationalEncryptionDetails": { + "type": "object", + "properties": { + "task:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "task:CountryCode" + ] + }, + "LDTaskObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LDTaskObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "task:Reference": { + "$ref": "ts_103280_2017_07#/$defs/LDID" + }, + "task:Status": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:StatusReason": { + "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" + }, + "task:DesiredStatus": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:RequestDetails": { + "$ref": "#/$defs/RequestDetails" + }, + "task:DeliveryDetails": { + "$ref": "#/$defs/LDDeliveryDetails" + }, + "task:ApprovalDetails": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" + } + }, + "task:CSPID": { + "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" + }, + "task:HandlingProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:Flags": { + "$ref": "#/$defs/LDTaskFlags" + }, + "task:NationalLDTaskingParameters": { + "$ref": "#/$defs/NationalLDTaskingParameters" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "RequestDetails": { + "type": "object", + "properties": { + "task:Type": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:StartTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:EndTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:ObservedTime": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "task:ObservedTimes": { + "type": "array", + "items": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + } + }, + "task:RequestValues": { + "$ref": "#/$defs/RequestValues" + }, + "task:Subtype": { + "$ref": "#/$defs/RequestSubtype" + } + }, + "required": [] + }, + "RequestValues": { + "type": "object", + "properties": { + "task:RequestValue": { + "type": "array", + "items": { + "$ref": "#/$defs/RequestValue" + }, + "minItems": 1 + } + }, + "required": [] + }, + "RequestValue": { + "type": "object", + "properties": { + "task:FormatType": { + "$ref": "#/$defs/FormatType" + }, + "task:Value": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + } + }, + "required": [ + "task:FormatType", + "task:Value" + ] + }, + "RequestSubtype": { + "type": "object", + "properties": { + "task:RequestSubtype": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "minItems": 1 + } + }, + "required": [] + }, + "LDDeliveryDetails": { + "type": "object", + "properties": { + "task:LDDeliveryDestination": { + "type": "array", + "items": { + "$ref": "#/$defs/LDDeliveryDestination" + }, + "minItems": 1 + } + }, + "required": [] + }, + "LDDeliveryDestination": { + "type": "object", + "properties": { + "task:DeliveryAddress": { + "$ref": "#/$defs/DeliveryAddress" + }, + "task:EncryptionDetails": { + "$ref": "#/$defs/NationalEncryptionDetails" + }, + "task:LDHandoverFormat": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:LDDeliveryProfile": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + }, + "task:NationalDeliveryParameters": { + "$ref": "#/$defs/NationalDeliveryParameters" + } + }, + "required": [] + }, + "LDTaskFlags": { + "type": "object", + "properties": { + "task:LDTaskFlag": { + "type": "array", + "items": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + } + }, + "required": [] + }, + "NationalLDTaskingParameters": { + "type": "object", + "properties": { + "task:CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + } + }, + "required": [ + "task:CountryCode" + ] + }, + "ListOfTrafficPolicyReferences": { + "type": "object", + "properties": { + "task:TrafficPolicyReference": { + "type": "array", + "items": { + "$ref": "#/$defs/TrafficPolicyReference" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TrafficPolicyReference": { + "type": "object", + "properties": { + "task:Order": { + "type": "integer", + "minimum": 1 + }, + "task:ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + } + }, + "required": [] + } + } +} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_TrafficPolicy.schema.json b/103120/schema/json/ts_103120_TrafficPolicy.schema.json new file mode 100644 index 0000000..1d9619e --- /dev/null +++ b/103120/schema/json/ts_103120_TrafficPolicy.schema.json @@ -0,0 +1,198 @@ +{ + "$id": "ts_103120_TrafficPolicy_2022_07", + "$defs": { + "TrafficPolicyObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficPolicyObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "tp:TrafficPolicyName": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "tp:TrafficRules": { + "$ref": "#/$defs/ListOfTrafficRuleReferences" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "ListOfTrafficRuleReferences": { + "type": "object", + "properties": { + "tp:TrafficRuleReference": { + "type": "array", + "items": { + "$ref": "#/$defs/TrafficRuleReference" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TrafficRuleReference": { + "type": "object", + "properties": { + "tp:Order": { + "type": "integer", + "minimum": 1 + }, + "tp:ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + } + }, + "required": [ + "tp:Order", + "tp:ObjectIdentifier" + ] + }, + "TrafficRuleObject": { + "type": "object", + "properties": { + "@xsi:type": { + "type": "string", + "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficRuleObject" + }, + "ObjectIdentifier": { + "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" + }, + "CountryCode": { + "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" + }, + "OwnerIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "Generation": { + "type": "integer", + "minimum": 0 + }, + "ExternalIdentifier": { + "$ref": "ts_103280_2017_07#/$defs/LongString" + }, + "AssociatedObjects": { + "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" + }, + "LastChanged": { + "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" + }, + "NationalHandlingParameters": { + "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" + }, + "tp:Criteria": { + "$ref": "#/$defs/ListOfTrafficCriteria" + }, + "tp:Action": { + "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" + } + }, + "required": [ + "@xsi:type", + "ObjectIdentifier" + ] + }, + "ListOfTrafficCriteria": { + "type": "object", + "properties": { + "tp:Criteria": { + "type": "array", + "items": { + "$ref": "#/$defs/TrafficCriteria" + }, + "minItems": 1 + } + }, + "required": [] + }, + "TrafficCriteria": { + "oneOf": [ + { + "type": "object", + "properties": { + "tp:IPPolicyCriteria": { + "$ref": "#/$defs/IPPolicyCriteria" + } + }, + "required": [ + "tp:IPPolicyCriteria" + ] + }, + { + "type": "object", + "properties": { + "tp:MobileAccessPolicyCriteria": { + "$ref": "#/$defs/MobileAccessPolicyCriteria" + } + }, + "required": [ + "tp:MobileAccessPolicyCriteria" + ] + } + ] + }, + "IPPolicyCriteria": { + "type": "object", + "properties": { + "tp:IPProtocol": { + "type": "integer", + "minimum": 0 + }, + "tp:SourceIPRange": { + "$ref": "ts_103280_2017_07#/$defs/IPCIDR" + }, + "tp:SourcePortRange": { + "$ref": "ts_103280_2017_07#/$defs/PortRange" + }, + "tp:DestinationIPRange": { + "$ref": "ts_103280_2017_07#/$defs/IPCIDR" + }, + "tp:DestinationPortRange": { + "$ref": "ts_103280_2017_07#/$defs/PortRange" + }, + "tp:BothDirections": { + "type": "boolean" + } + }, + "required": [] + }, + "MobileAccessPolicyCriteria": { + "type": "object", + "properties": { + "tp:APN": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + }, + "tp:DNN": { + "$ref": "ts_103280_2017_07#/$defs/ShortString" + } + }, + "required": [] + } + } +} \ No newline at end of file diff --git a/103280/TS_103_280.schema.json b/103280/TS_103_280.schema.json index 474b3ee..02cd078 100644 --- a/103280/TS_103_280.schema.json +++ b/103280/TS_103_280.schema.json @@ -196,23 +196,23 @@ { "type": "object", "properties": { - "IPv4Address": { + "etsi280:IPv4Address": { "$ref": "#/$defs/IPv4Address" } }, "required": [ - "IPv4Address" + "etsi280:IPv4Address" ] }, { "type": "object", "properties": { - "IPv6Address": { + "etsi280:IPv6Address": { "$ref": "#/$defs/IPv6Address" } }, "required": [ - "IPv6Address" + "etsi280:IPv6Address" ] } ] @@ -222,23 +222,23 @@ { "type": "object", "properties": { - "IPv4CIDR": { + "etsi280:IPv4CIDR": { "$ref": "#/$defs/IPv4CIDR" } }, "required": [ - "IPv4CIDR" + "etsi280:IPv4CIDR" ] }, { "type": "object", "properties": { - "IPv6CIDR": { + "etsi280:IPv6CIDR": { "$ref": "#/$defs/IPv6CIDR" } }, "required": [ - "IPv6CIDR" + "etsi280:IPv6CIDR" ] } ] @@ -246,31 +246,31 @@ "TCPPortRange": { "type": "object", "properties": { - "start": { + "etsi280:start": { "$ref": "#/$defs/TCPPort" }, - "end": { + "etsi280:end": { "$ref": "#/$defs/TCPPort" } }, "required": [ - "start", - "end" + "etsi280:start", + "etsi280:end" ] }, "UDPPortRange": { "type": "object", "properties": { - "start": { + "etsi280:start": { "$ref": "#/$defs/UDPPort" }, - "end": { + "etsi280:end": { "$ref": "#/$defs/UDPPort" } }, "required": [ - "start", - "end" + "etsi280:start", + "etsi280:end" ] }, "Port": { @@ -278,23 +278,23 @@ { "type": "object", "properties": { - "TCPPort": { + "etsi280:TCPPort": { "$ref": "#/$defs/TCPPort" } }, "required": [ - "TCPPort" + "etsi280:TCPPort" ] }, { "type": "object", "properties": { - "UDPPort": { + "etsi280:UDPPort": { "$ref": "#/$defs/UDPPort" } }, "required": [ - "UDPPort" + "etsi280:UDPPort" ] } ] @@ -304,23 +304,23 @@ { "type": "object", "properties": { - "TCPPortRange": { + "etsi280:TCPPortRange": { "$ref": "#/$defs/TCPPortRange" } }, "required": [ - "TCPPortRange" + "etsi280:TCPPortRange" ] }, { "type": "object", "properties": { - "UDPPortRange": { + "etsi280:UDPPortRange": { "$ref": "#/$defs/UDPPortRange" } }, "required": [ - "UDPPortRange" + "etsi280:UDPPortRange" ] } ] @@ -328,61 +328,61 @@ "IPAddressPort": { "type": "object", "properties": { - "address": { + "etsi280:address": { "$ref": "#/$defs/IPAddress" }, - "port": { + "etsi280:port": { "$ref": "#/$defs/Port" } }, "required": [ - "address", - "port" + "etsi280:address", + "etsi280:port" ] }, "IPAddressPortRange": { "type": "object", "properties": { - "address": { + "etsi280:address": { "$ref": "#/$defs/IPAddress" }, - "portRange": { + "etsi280:portRange": { "$ref": "#/$defs/PortRange" } }, "required": [ - "address", - "portRange" + "etsi280:address", + "etsi280:portRange" ] }, "WGS84CoordinateDecimal": { "type": "object", "properties": { - "latitude": { + "etsi280:latitude": { "$ref": "#/$defs/WGS84LatitudeDecimal" }, - "longitude": { + "etsi280:longitude": { "$ref": "#/$defs/WGS84LongitudeDecimal" } }, "required": [ - "latitude", - "longitude" + "etsi280:latitude", + "etsi280:longitude" ] }, "WGS84CoordinateAngular": { "type": "object", "properties": { - "latitude": { + "etsi280:latitude": { "$ref": "#/$defs/WGS84LatitudeAngular" }, - "longitude": { + "etsi280:longitude": { "$ref": "#/$defs/WGS84LongitudeAngular" } }, "required": [ - "latitude", - "longitude" + "etsi280:latitude", + "etsi280:longitude" ] } } diff --git a/utils/translate/TypeMapping.py b/utils/translate/TypeMapping.py index e3daf62..2b4b785 100644 --- a/utils/translate/TypeMapping.py +++ b/utils/translate/TypeMapping.py @@ -15,9 +15,9 @@ class TypeMapping(ABC): XSD_TYPE_MAP = { "string" : { "type" : "string" }, - "normalizedString" : { "type" : "string", "pattern" : "^[^\r\n\t]*$"}, + "normalizedString" : { "type" : "string"}, "dateTime" : { "type" : "string"}, - "token" : { "type" : "string", "pattern" : "^[^\r\n\t]*$"}, + "token" : { "type" : "string"}, "anyURI" : { "type" : "string" }, "integer" : { "type" : "integer"}, @@ -27,7 +27,7 @@ class TypeMapping(ABC): "boolean" : { "type" : "boolean" }, "hexBinary" : { "type" : "string", "pattern" : "^([a-fA-F0-9]{2})*$"}, - "base64Binary" : { "type" : "string", "pattern" : "^[-A-Za-z0-9+/]*={0,3}$"}, + "base64Binary" : { "type" : "string", "pattern" : "^[A-Za-z0-9+\/]*={0,3}$"}, "anyType" : {} } diff --git a/utils/xml_to_json.py b/utils/xml_to_json.py index afc0f03..66145f9 100644 --- a/utils/xml_to_json.py +++ b/utils/xml_to_json.py @@ -68,7 +68,12 @@ coerce_to_list = [ ] coerce_to_int = [ - 'ActionIdentifier' + 'ActionIdentifier', + 'delivery:SequenceNumber' +] + +coerce_to_bool = [ + 'delivery:LastSequence' ] def postprocessor (path, key, value): @@ -79,6 +84,8 @@ def postprocessor (path, key, value): return key, value if key in coerce_to_int: return key, int(value) + if key in coerce_to_bool: + return key, bool(value) return key, value if __name__ == "__main__": @@ -104,12 +111,7 @@ if __name__ == "__main__": d = xmltodict.parse(s, force_list=tuple(coerce_to_list), - # process_namespaces=True, - # namespaces = namespace_prefixes, postprocessor=postprocessor )['HI1Message'] - # prefixes = extract_prefixes(d) - # removePrefixes(d, prefixes) - print(json.dumps(d, indent=2)) -- GitLab From f0fae221317b8e51cf7b246cab4d3226685df015 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 9 Jun 2023 10:56:11 +0100 Subject: [PATCH 20/22] Taking out 120 stuff again --- 103120/schema/json/TS_103_280.schema.json | 389 ------------ .../json/ts_103120_Authorisation.schema.json | 148 ----- .../schema/json/ts_103120_Common.schema.json | 164 ----- 103120/schema/json/ts_103120_Core.schema.json | 590 ----------------- .../json/ts_103120_Delivery.schema.json | 209 ------ .../json/ts_103120_Document.schema.json | 148 ----- .../json/ts_103120_Notification.schema.json | 103 --- 103120/schema/json/ts_103120_Task.schema.json | 599 ------------------ .../json/ts_103120_TrafficPolicy.schema.json | 198 ------ 9 files changed, 2548 deletions(-) delete mode 100644 103120/schema/json/TS_103_280.schema.json delete mode 100644 103120/schema/json/ts_103120_Authorisation.schema.json delete mode 100644 103120/schema/json/ts_103120_Common.schema.json delete mode 100644 103120/schema/json/ts_103120_Core.schema.json delete mode 100644 103120/schema/json/ts_103120_Delivery.schema.json delete mode 100644 103120/schema/json/ts_103120_Document.schema.json delete mode 100644 103120/schema/json/ts_103120_Notification.schema.json delete mode 100644 103120/schema/json/ts_103120_Task.schema.json delete mode 100644 103120/schema/json/ts_103120_TrafficPolicy.schema.json diff --git a/103120/schema/json/TS_103_280.schema.json b/103120/schema/json/TS_103_280.schema.json deleted file mode 100644 index 02cd078..0000000 --- a/103120/schema/json/TS_103_280.schema.json +++ /dev/null @@ -1,389 +0,0 @@ -{ - "$id": "ts_103280_2017_07", - "$defs": { - "ShortString": { - "type": "string", - "maxLength": 255 - }, - "LongString": { - "type": "string", - "maxLength": 65535 - }, - "LIID": { - "type": "string", - "pattern": "^([!-~]{1,25})|([0-9a-f]{26,50})$" - }, - "UTCDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" - }, - "UTCMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}Z$" - }, - "QualifiedDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "QualifiedMicrosecondDateTime": { - "type": "string", - "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})$" - }, - "InternationalE164": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "IMSI": { - "type": "string", - "pattern": "^[0-9]{6,15}$" - }, - "IMEI": { - "type": "string", - "pattern": "^[0-9]{14}$" - }, - "IMEICheckDigit": { - "type": "string", - "pattern": "^[0-9]{15}$" - }, - "IMEISV": { - "type": "string", - "pattern": "^[0-9]{16}$" - }, - "IPv4Address": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$" - }, - "IPv4CIDR": { - "type": "string", - "pattern": "^((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])/([1-2]?[0-9]|3[0-2])$" - }, - "IPv6Address": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})$" - }, - "IPv6CIDR": { - "type": "string", - "pattern": "^([0-9a-f]{4}:){7}([0-9a-f]{4})/(([1-9][0-9]?)|(1[0-1][0-9])|(12[0-8]))$" - }, - "TCPPort": { - "type": "integer", - "exclusiveMinimum": 1, - "maximum": 65535 - }, - "UDPPort": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "MACAddress": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){5}[a-f0-9]{2}$" - }, - "EmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^[a-zA-Z0-9\\.!#$%&'\\*\\+\\\\/=\\?\\^_`\\{\\|\\}~\\-]+@[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$" - } - ] - }, - "UUID": { - "type": "string", - "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" - }, - "ISOCountryCode": { - "type": "string", - "pattern": "^[A-Z]{2}$" - }, - "SIPURI": { - "type": "string", - "pattern": "^sips?:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "TELURI": { - "type": "string", - "pattern": "^tel:[a-zA-Z0-9!#$&-;=?-\\[\\]_~%]+$" - }, - "WGS84LatitudeDecimal": { - "type": "string", - "pattern": "^[NS][0-9]{2}\\.[0-9]{6}$" - }, - "WGS84LongitudeDecimal": { - "type": "string", - "pattern": "^[EW][0-9]{3}\\.[0-9]{6}$" - }, - "WGS84LatitudeAngular": { - "type": "string", - "pattern": "^[NS][0-9]{6}\\.[0-9]{2}$" - }, - "WGS84LongitudeAngular": { - "type": "string", - "pattern": "^[EW][0-9]{7}\\.[0-9]{2}$" - }, - "SUPIIMSI": { - "$ref": "#/$defs/IMSI" - }, - "SUPINAI": { - "$ref": "#/$defs/NAI" - }, - "SUCI": { - "type": "string", - "pattern": "^([a-fA-F0-9]{2})*$" - }, - "PEIIMEI": { - "$ref": "#/$defs/IMEI" - }, - "PEIIMEICheckDigit": { - "$ref": "#/$defs/IMEICheckDigit" - }, - "PEIIMEISV": { - "$ref": "#/$defs/IMEISV" - }, - "GPSIMSISDN": { - "type": "string", - "pattern": "^[0-9]{1,15}$" - }, - "GPSINAI": { - "$ref": "#/$defs/NAI" - }, - "NAI": { - "type": "string" - }, - "LDID": { - "type": "string", - "pattern": "^([A-Z]{2}-.+-.+)$" - }, - "InternationalizedEmailAddress": { - "allOf": [ - { - "$ref": "#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^.+@.+$" - } - ] - }, - "EUI64": { - "type": "string", - "pattern": "^([a-f0-9]{2}:){7}[a-f0-9]{2}$" - }, - "CGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{4}-[a-f0-9]{4}$" - }, - "ECGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{7}$" - }, - "NCGI": { - "type": "string", - "pattern": "^[0-9]{3}-[0-9]{2,3}-[a-f0-9]{9}$" - }, - "ICCID": { - "type": "string", - "pattern": "^[0-9]{19,20}$" - }, - "IPProtocol": { - "type": "integer", - "minimum": 0, - "maximum": 255 - }, - "IPAddress": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:IPv4Address": { - "$ref": "#/$defs/IPv4Address" - } - }, - "required": [ - "etsi280:IPv4Address" - ] - }, - { - "type": "object", - "properties": { - "etsi280:IPv6Address": { - "$ref": "#/$defs/IPv6Address" - } - }, - "required": [ - "etsi280:IPv6Address" - ] - } - ] - }, - "IPCIDR": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:IPv4CIDR": { - "$ref": "#/$defs/IPv4CIDR" - } - }, - "required": [ - "etsi280:IPv4CIDR" - ] - }, - { - "type": "object", - "properties": { - "etsi280:IPv6CIDR": { - "$ref": "#/$defs/IPv6CIDR" - } - }, - "required": [ - "etsi280:IPv6CIDR" - ] - } - ] - }, - "TCPPortRange": { - "type": "object", - "properties": { - "etsi280:start": { - "$ref": "#/$defs/TCPPort" - }, - "etsi280:end": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "etsi280:start", - "etsi280:end" - ] - }, - "UDPPortRange": { - "type": "object", - "properties": { - "etsi280:start": { - "$ref": "#/$defs/UDPPort" - }, - "etsi280:end": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "etsi280:start", - "etsi280:end" - ] - }, - "Port": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:TCPPort": { - "$ref": "#/$defs/TCPPort" - } - }, - "required": [ - "etsi280:TCPPort" - ] - }, - { - "type": "object", - "properties": { - "etsi280:UDPPort": { - "$ref": "#/$defs/UDPPort" - } - }, - "required": [ - "etsi280:UDPPort" - ] - } - ] - }, - "PortRange": { - "oneOf": [ - { - "type": "object", - "properties": { - "etsi280:TCPPortRange": { - "$ref": "#/$defs/TCPPortRange" - } - }, - "required": [ - "etsi280:TCPPortRange" - ] - }, - { - "type": "object", - "properties": { - "etsi280:UDPPortRange": { - "$ref": "#/$defs/UDPPortRange" - } - }, - "required": [ - "etsi280:UDPPortRange" - ] - } - ] - }, - "IPAddressPort": { - "type": "object", - "properties": { - "etsi280:address": { - "$ref": "#/$defs/IPAddress" - }, - "etsi280:port": { - "$ref": "#/$defs/Port" - } - }, - "required": [ - "etsi280:address", - "etsi280:port" - ] - }, - "IPAddressPortRange": { - "type": "object", - "properties": { - "etsi280:address": { - "$ref": "#/$defs/IPAddress" - }, - "etsi280:portRange": { - "$ref": "#/$defs/PortRange" - } - }, - "required": [ - "etsi280:address", - "etsi280:portRange" - ] - }, - "WGS84CoordinateDecimal": { - "type": "object", - "properties": { - "etsi280:latitude": { - "$ref": "#/$defs/WGS84LatitudeDecimal" - }, - "etsi280:longitude": { - "$ref": "#/$defs/WGS84LongitudeDecimal" - } - }, - "required": [ - "etsi280:latitude", - "etsi280:longitude" - ] - }, - "WGS84CoordinateAngular": { - "type": "object", - "properties": { - "etsi280:latitude": { - "$ref": "#/$defs/WGS84LatitudeAngular" - }, - "etsi280:longitude": { - "$ref": "#/$defs/WGS84LongitudeAngular" - } - }, - "required": [ - "etsi280:latitude", - "etsi280:longitude" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Authorisation.schema.json b/103120/schema/json/ts_103120_Authorisation.schema.json deleted file mode 100644 index 1c9a68f..0000000 --- a/103120/schema/json/ts_103120_Authorisation.schema.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "$id": "ts_103120_Authorisation_2020_09", - "$defs": { - "AuthorisationObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "auth:AuthorisationReference": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "auth:AuthorisationLegalType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationPriority": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationDesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationTimespan": { - "$ref": "#/$defs/AuthorisationTimespan" - }, - "auth:AuthorisationCSPID": { - "$ref": "#/$defs/AuthorisationCSPID" - }, - "auth:AuthorisationCreationTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:AuthorisationServedTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:AuthorisationTerminationTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:AuthorisationApprovalDetails": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "auth:AuthorisationInvalidReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "auth:AuthorisationFlags": { - "$ref": "#/$defs/AuthorisationFlags" - }, - "auth:AuthorisationManualInformation": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "auth:NationalAuthorisationParameters": { - "$ref": "#/$defs/NationalAuthorisationParameters" - }, - "auth:AuthorisationJurisdiction": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "auth:AuthorisationTypeOfCase": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "auth:AuthorisationLegalEntity": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "AuthorisationFlags": { - "type": "object", - "properties": { - "auth:AuthorisationFlag": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - } - }, - "required": [] - }, - "AuthorisationTimespan": { - "type": "object", - "properties": { - "auth:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "auth:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "AuthorisationCSPID": { - "type": "object", - "properties": { - "auth:CSPID": { - "type": "array", - "items": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - }, - "minItems": 1 - } - }, - "required": [] - }, - "NationalAuthorisationParameters": { - "type": "object", - "properties": { - "auth:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "auth:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Common.schema.json b/103120/schema/json/ts_103120_Common.schema.json deleted file mode 100644 index d11b4b4..0000000 --- a/103120/schema/json/ts_103120_Common.schema.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "$id": "ts_103120_Common_2016_02", - "$defs": { - "ETSIVersion": { - "allOf": [ - { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - { - "type": "string", - "pattern": "^V\\d+\\.\\d+\\.\\d+$" - } - ] - }, - "DictionaryEntry": { - "type": "object", - "properties": { - "common:Owner": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "common:Name": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "common:Value": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "common:Owner", - "common:Name", - "common:Value" - ] - }, - "ApprovalDetails": { - "type": "object", - "properties": { - "common:ApprovalType": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApprovalDescription": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApprovalReference": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverDetails": { - "$ref": "#/$defs/ApproverDetails" - }, - "common:ApprovalTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "common:ApprovalIsEmergency": { - "type": "boolean" - }, - "common:ApprovalDigitalSignature": { - "$ref": "#/$defs/ApprovalDigitalSignature" - }, - "common:ApprovalNationalDetails": { - "$ref": "#/$defs/ApprovalNationalDetails" - } - }, - "required": [] - }, - "ApproverDetails": { - "type": "object", - "properties": { - "common:ApproverName": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverRole": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverIdentity": { - "$ref": "#/$defs/ApproverIdentity" - }, - "common:ApproverContactDetails": { - "type": "array", - "items": { - "$ref": "#/$defs/ApproverContactDetails" - } - } - }, - "required": [] - }, - "ApproverIdentity": { - "oneOf": [ - { - "type": "object", - "properties": { - "common:NationalApproverIdentity": { - "$ref": "#/$defs/NationalApproverIdentity" - } - }, - "required": [ - "common:NationalApproverIdentity" - ] - } - ] - }, - "ApproverContactDetails": { - "type": "object", - "properties": { - "common:ApproverAlternateName": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "common:ApproverEmailAddress": { - "$ref": "ts_103280_2017_07#/$defs/InternationalizedEmailAddress" - }, - "common:ApproverPhoneNumber": { - "$ref": "ts_103280_2017_07#/$defs/InternationalE164" - } - }, - "required": [] - }, - "NationalApproverIdentity": { - "type": "object", - "properties": { - "common:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "common:CountryCode" - ] - }, - "ApprovalDigitalSignature": { - "oneOf": [ - { - "type": "object", - "properties": { - "common:NationalDigitalSignature": { - "$ref": "#/$defs/NationalDigitalSignature" - } - }, - "required": [ - "common:NationalDigitalSignature" - ] - } - ] - }, - "ApprovalNationalDetails": { - "type": "object", - "properties": { - "common:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "common:CountryCode" - ] - }, - "NationalDigitalSignature": { - "type": "object", - "properties": { - "common:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "common:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Core.schema.json b/103120/schema/json/ts_103120_Core.schema.json deleted file mode 100644 index f116d31..0000000 --- a/103120/schema/json/ts_103120_Core.schema.json +++ /dev/null @@ -1,590 +0,0 @@ -{ - "$id": "ts_103120_Core_2019_10", - "$defs": { - "ObjectIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/UUID" - }, - "HI1Message": { - "type": "object", - "properties": { - "Header": { - "$ref": "#/$defs/MessageHeader" - }, - "Payload": { - "$ref": "#/$defs/MessagePayload" - }, - "Signature": {}, - "xmldsig:Signature": { - "$ref": "www.w3.org_2000_09_xmldsig##/$defs/SignatureType" - } - }, - "required": [ - "Header", - "Payload" - ] - }, - "MessageHeader": { - "type": "object", - "properties": { - "SenderIdentifier": { - "$ref": "#/$defs/EndpointID" - }, - "ReceiverIdentifier": { - "$ref": "#/$defs/EndpointID" - }, - "TransactionIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/UUID" - }, - "Timestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedMicrosecondDateTime" - }, - "Version": { - "$ref": "#/$defs/Version" - } - }, - "required": [ - "SenderIdentifier", - "ReceiverIdentifier", - "TransactionIdentifier", - "Timestamp", - "Version" - ] - }, - "Version": { - "type": "object", - "properties": { - "ETSIVersion": { - "$ref": "ts_103120_Common_2016_02#/$defs/ETSIVersion" - }, - "NationalProfileOwner": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "NationalProfileVersion": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "ETSIVersion", - "NationalProfileOwner", - "NationalProfileVersion" - ] - }, - "EndpointID": { - "type": "object", - "properties": { - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "UniqueIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "CountryCode", - "UniqueIdentifier" - ] - }, - "MessagePayload": { - "oneOf": [ - { - "type": "object", - "properties": { - "RequestPayload": { - "$ref": "#/$defs/RequestPayload" - } - }, - "required": [ - "RequestPayload" - ] - }, - { - "type": "object", - "properties": { - "ResponsePayload": { - "$ref": "#/$defs/ResponsePayload" - } - }, - "required": [ - "ResponsePayload" - ] - } - ] - }, - "RequestPayload": { - "type": "object", - "properties": { - "ActionRequests": { - "$ref": "#/$defs/ActionRequests" - } - }, - "required": [ - "ActionRequests" - ] - }, - "ActionRequests": { - "type": "object", - "properties": { - "ActionRequest": { - "type": "array", - "items": { - "$ref": "#/$defs/ActionRequest" - }, - "minItems": 1 - } - }, - "required": [] - }, - "ResponsePayload": { - "oneOf": [ - { - "type": "object", - "properties": { - "ActionResponses": { - "$ref": "#/$defs/ActionResponses" - } - }, - "required": [ - "ActionResponses" - ] - }, - { - "type": "object", - "properties": { - "ErrorInformation": { - "$ref": "#/$defs/ActionUnsuccesfulInformation" - } - }, - "required": [ - "ErrorInformation" - ] - } - ] - }, - "ActionResponses": { - "type": "object", - "properties": { - "ActionResponse": { - "type": "array", - "items": { - "$ref": "#/$defs/ActionResponse" - }, - "minItems": 1 - } - }, - "required": [] - }, - "ActionRequest": { - "allOf": [ - { - "type": "object", - "properties": { - "ActionIdentifier": { - "type": "integer", - "minimum": 0 - } - }, - "required": [ - "ActionIdentifier" - ] - }, - { - "oneOf": [ - { - "type": "object", - "properties": { - "GET": { - "$ref": "#/$defs/GETRequest" - } - }, - "required": [ - "GET" - ] - }, - { - "type": "object", - "properties": { - "CREATE": { - "$ref": "#/$defs/CREATERequest" - } - }, - "required": [ - "CREATE" - ] - }, - { - "type": "object", - "properties": { - "UPDATE": { - "$ref": "#/$defs/UPDATERequest" - } - }, - "required": [ - "UPDATE" - ] - }, - { - "type": "object", - "properties": { - "LIST": { - "$ref": "#/$defs/LISTRequest" - } - }, - "required": [ - "LIST" - ] - }, - { - "type": "object", - "properties": { - "DELIVER": { - "$ref": "#/$defs/DELIVERRequest" - } - }, - "required": [ - "DELIVER" - ] - } - ] - } - ] - }, - "ActionResponse": { - "allOf": [ - { - "type": "object", - "properties": { - "ActionIdentifier": { - "type": "integer", - "minimum": 0 - } - }, - "required": [ - "ActionIdentifier" - ] - }, - { - "oneOf": [ - { - "type": "object", - "properties": { - "GETResponse": { - "$ref": "#/$defs/GETResponse" - } - }, - "required": [ - "GETResponse" - ] - }, - { - "type": "object", - "properties": { - "CREATEResponse": { - "$ref": "#/$defs/CREATEResponse" - } - }, - "required": [ - "CREATEResponse" - ] - }, - { - "type": "object", - "properties": { - "UPDATEResponse": { - "$ref": "#/$defs/UPDATEResponse" - } - }, - "required": [ - "UPDATEResponse" - ] - }, - { - "type": "object", - "properties": { - "LISTResponse": { - "$ref": "#/$defs/LISTResponse" - } - }, - "required": [ - "LISTResponse" - ] - }, - { - "type": "object", - "properties": { - "ErrorInformation": { - "$ref": "#/$defs/ActionUnsuccesfulInformation" - } - }, - "required": [ - "ErrorInformation" - ] - }, - { - "type": "object", - "properties": { - "DELIVERResponse": { - "$ref": "#/$defs/DELIVERResponse" - } - }, - "required": [ - "DELIVERResponse" - ] - } - ] - } - ] - }, - "GETRequest": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - } - }, - "required": [ - "Identifier" - ] - }, - "GETResponse": { - "type": "object", - "properties": { - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "HI1Object" - ] - }, - "CREATERequest": { - "type": "object", - "properties": { - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "HI1Object" - ] - }, - "CREATEResponse": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "Identifier" - ] - }, - "UPDATERequest": { - "type": "object", - "properties": { - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "HI1Object" - ] - }, - "UPDATEResponse": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "Identifier" - ] - }, - "LISTRequest": { - "type": "object", - "properties": { - "ObjectType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "LISTResponse": { - "type": "object", - "properties": { - "ListResponseRecord": { - "type": "array", - "items": { - "$ref": "#/$defs/ListResponseRecord" - } - } - }, - "required": [] - }, - "ListResponseRecord": { - "type": "object", - "properties": { - "ObjectType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [ - "ObjectType", - "Identifier", - "Generation" - ] - }, - "ActionUnsuccesfulInformation": { - "type": "object", - "properties": { - "ErrorCode": { - "type": "integer", - "minimum": 0 - }, - "ErrorDescription": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "ErrorCode", - "ErrorDescription" - ] - }, - "DELIVERRequest": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "HI1Object": { - "$ref": "#/$defs/ConcreteHI1Object" - } - }, - "required": [ - "Identifier", - "HI1Object" - ] - }, - "DELIVERResponse": { - "type": "object", - "properties": { - "Identifier": { - "$ref": "#/$defs/ObjectIdentifier" - } - }, - "required": [ - "Identifier" - ] - }, - "HI1Object": { - "type": "object", - "properties": { - "ObjectIdentifier": { - "$ref": "#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "#/$defs/NationalHandlingParameters" - } - }, - "required": [ - "ObjectIdentifier" - ] - }, - "AssociatedObjects": { - "type": "object", - "properties": { - "AssociatedObject": { - "type": "array", - "items": { - "$ref": "#/$defs/ObjectIdentifier" - } - } - }, - "required": [] - }, - "NationalHandlingParameters": { - "type": "object", - "properties": { - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "CountryCode" - ] - }, - "ConcreteHI1Object": { - "oneOf": [ - { - "$ref": "ts_103120_Authorisation_2020_09#/$defs/AuthorisationObject" - }, - { - "$ref": "ts_103120_Task_2020_09#/$defs/LITaskObject" - }, - { - "$ref": "ts_103120_Task_2020_09#/$defs/LDTaskObject" - }, - { - "$ref": "ts_103120_Document_2020_09#/$defs/DocumentObject" - }, - { - "$ref": "ts_103120_Notification_2016_02#/$defs/NotificationObject" - }, - { - "$ref": "ts_103120_Delivery_2019_10#/$defs/DeliveryObject" - }, - { - "$ref": "ts_103120_TrafficPolicy_2022_07#/$defs/TrafficPolicyObject" - } - ] - } - }, - "$ref": "#/$defs/HI1Message" -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Delivery.schema.json b/103120/schema/json/ts_103120_Delivery.schema.json deleted file mode 100644 index 093d127..0000000 --- a/103120/schema/json/ts_103120_Delivery.schema.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "$id": "ts_103120_Delivery_2019_10", - "$defs": { - "DeliveryObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2019/10/Delivery}DeliveryObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "delivery:Reference": { - "$ref": "#/$defs/Reference" - }, - "delivery:DeliveryID": { - "$ref": "ts_103280_2017_07#/$defs/UUID" - }, - "delivery:SequenceNumber": { - "type": "integer", - "minimum": 0 - }, - "delivery:LastSequence": { - "type": "boolean" - }, - "delivery:Manifest": { - "$ref": "#/$defs/Manifest" - }, - "delivery:Delivery": { - "$ref": "#/$defs/Delivery" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "Reference": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:LDID": { - "$ref": "ts_103280_2017_07#/$defs/LDID" - } - }, - "required": [ - "delivery:LDID" - ] - }, - { - "type": "object", - "properties": { - "delivery:LIID": { - "$ref": "ts_103280_2017_07#/$defs/LIID" - } - }, - "required": [ - "delivery:LIID" - ] - } - ] - }, - "Manifest": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:Specification": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - }, - "required": [ - "delivery:Specification" - ] - }, - { - "type": "object", - "properties": { - "delivery:ExternalSchema": { - "$ref": "#/$defs/ExternalSchema" - } - }, - "required": [ - "delivery:ExternalSchema" - ] - } - ] - }, - "ExternalSchema": { - "type": "object", - "properties": { - "delivery:ManifestID": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "delivery:ManifestContents": { - "$ref": "#/$defs/ManifestContents" - } - }, - "required": [] - }, - "ManifestContents": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:BinaryData": { - "$ref": "#/$defs/EmbeddedBinaryData" - } - }, - "required": [ - "delivery:BinaryData" - ] - }, - { - "type": "object", - "properties": { - "delivery:XMLSchema": { - "$ref": "#/$defs/SchemaContent" - } - }, - "required": [ - "delivery:XMLSchema" - ] - } - ] - }, - "SchemaContent": { - "type": "object", - "properties": { - "delivery:schema": {} - }, - "required": [ - "delivery:schema" - ] - }, - "Delivery": { - "oneOf": [ - { - "type": "object", - "properties": { - "delivery:BinaryData": { - "$ref": "#/$defs/EmbeddedBinaryData" - } - }, - "required": [ - "delivery:BinaryData" - ] - }, - { - "type": "object", - "properties": { - "delivery:XMLData": { - "$ref": "#/$defs/EmbeddedXMLData" - } - }, - "required": [ - "delivery:XMLData" - ] - } - ] - }, - "EmbeddedBinaryData": { - "type": "object", - "properties": { - "delivery:Data": { - "type": "string", - "pattern": "^[A-Za-z0-9+\\/]*={0,3}$" - }, - "delivery:ContentType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "delivery:Checksum": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "delivery:ChecksumType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "delivery:Data" - ] - }, - "EmbeddedXMLData": {} - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Document.schema.json b/103120/schema/json/ts_103120_Document.schema.json deleted file mode 100644 index d844092..0000000 --- a/103120/schema/json/ts_103120_Document.schema.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "$id": "ts_103120_Document_2020_09", - "$defs": { - "DocumentObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Document}DocumentObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "doc:DocumentReference": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "doc:DocumentName": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "doc:DocumentStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:DocumentDesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:DocumentTimespan": { - "$ref": "#/$defs/DocumentTimespan" - }, - "doc:DocumentType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:DocumentProperties": { - "$ref": "#/$defs/DocumentProperties" - }, - "doc:DocumentBody": { - "$ref": "#/$defs/DocumentBody" - }, - "doc:DocumentSignature": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "doc:DocumentInvalidReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "doc:NationalDocumentParameters": { - "$ref": "#/$defs/NationalDocumentParameters" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "DocumentTimespan": { - "type": "object", - "properties": { - "doc:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "doc:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "DocumentProperties": { - "type": "object", - "properties": { - "doc:DocumentProperty": { - "type": "array", - "items": { - "$ref": "#/$defs/DocumentProperty" - } - } - }, - "required": [] - }, - "DocumentProperty": { - "type": "object", - "properties": { - "doc:PropertyType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "doc:PropertyValue": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "doc:PropertyType", - "doc:PropertyValue" - ] - }, - "DocumentBody": { - "type": "object", - "properties": { - "doc:Contents": { - "type": "string", - "pattern": "^[A-Za-z0-9+\\/]*={0,3}$" - }, - "doc:ContentType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "doc:Checksum": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "doc:ChecksumType": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [] - }, - "NationalDocumentParameters": { - "type": "object", - "properties": { - "doc:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "doc:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Notification.schema.json b/103120/schema/json/ts_103120_Notification.schema.json deleted file mode 100644 index 84fbf04..0000000 --- a/103120/schema/json/ts_103120_Notification.schema.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "$id": "ts_103120_Notification_2016_02", - "$defs": { - "NotificationObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2016/02/Notification}NotificationObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "notification:NotificationDetails": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "notification:NotificationType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "notification:NewNotification": { - "type": "boolean" - }, - "notification:NotificationTimestamp": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "notification:StatusOfAssociatedObjects": { - "$ref": "#/$defs/ListOfAssociatedObjectStatus" - }, - "notification:NationalNotificationParameters": { - "$ref": "#/$defs/NationalNotificationParameters" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "ListOfAssociatedObjectStatus": { - "type": "object", - "properties": { - "notification:AssociatedObjectStatus": { - "type": "array", - "items": { - "$ref": "#/$defs/AssociatedObjectStatus" - }, - "minItems": 1 - } - }, - "required": [] - }, - "AssociatedObjectStatus": { - "type": "object", - "properties": { - "notification:AssociatedObject": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "notification:Status": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "notification:Details": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "notification:AssociatedObject", - "notification:Status" - ] - }, - "NationalNotificationParameters": { - "type": "object", - "properties": { - "notification:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "notification:CountryCode" - ] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_Task.schema.json b/103120/schema/json/ts_103120_Task.schema.json deleted file mode 100644 index 24de4c5..0000000 --- a/103120/schema/json/ts_103120_Task.schema.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "$id": "ts_103120_Task_2020_09", - "$defs": { - "LITaskObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "task:Reference": { - "$ref": "ts_103280_2017_07#/$defs/LIID" - }, - "task:Status": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:DesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:Timespan": { - "$ref": "#/$defs/TaskTimespan" - }, - "task:TargetIdentifier": { - "$ref": "#/$defs/TargetIdentifier" - }, - "task:DeliveryType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:DeliveryDetails": { - "$ref": "#/$defs/TaskDeliveryDetails" - }, - "task:ApprovalDetails": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "task:CSPID": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - }, - "task:HandlingProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:InvalidReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "task:Flags": { - "$ref": "#/$defs/TaskFlags" - }, - "task:NationalLITaskingParameters": { - "$ref": "#/$defs/NationalLITaskingParameters" - }, - "task:ListOfTrafficPolicyReferences": { - "$ref": "#/$defs/ListOfTrafficPolicyReferences" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "TaskTimespan": { - "type": "object", - "properties": { - "task:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:TerminationTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:ProvisioningTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:DeprovisioningTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "required": [] - }, - "TargetIdentifier": { - "type": "object", - "properties": { - "task:TargetIdentifierValues": { - "$ref": "#/$defs/TargetIdentifierValues" - }, - "task:ServiceType": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - }, - "required": [] - }, - "TargetIdentifierValues": { - "type": "object", - "properties": { - "task:TargetIdentifierValue": { - "type": "array", - "items": { - "$ref": "#/$defs/TargetIdentifierValue" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TargetIdentifierValue": { - "type": "object", - "properties": { - "task:FormatType": { - "$ref": "#/$defs/FormatType" - }, - "task:Value": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:FormatType", - "task:Value" - ] - }, - "FormatType": { - "type": "object", - "properties": { - "task:FormatOwner": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "task:FormatName": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [ - "task:FormatOwner", - "task:FormatName" - ] - }, - "TaskDeliveryDetails": { - "type": "object", - "properties": { - "task:DeliveryDestination": { - "type": "array", - "items": { - "$ref": "#/$defs/DeliveryDestination" - }, - "minItems": 1 - } - }, - "required": [] - }, - "DeliveryDestination": { - "type": "object", - "properties": { - "task:DeliveryAddress": { - "$ref": "#/$defs/DeliveryAddress" - }, - "task:EncryptionDetails": { - "$ref": "#/$defs/NationalEncryptionDetails" - }, - "task:IRIorCC": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:HandoverFormat": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:DeliveryProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:NationalDeliveryParameters": { - "$ref": "#/$defs/NationalDeliveryParameters" - } - }, - "required": [] - }, - "DeliveryAddress": { - "oneOf": [ - { - "type": "object", - "properties": { - "task:IPv4Address": { - "$ref": "ts_103280_2017_07#/$defs/IPv4Address" - } - }, - "required": [ - "task:IPv4Address" - ] - }, - { - "type": "object", - "properties": { - "task:IPv6Address": { - "$ref": "ts_103280_2017_07#/$defs/IPv6Address" - } - }, - "required": [ - "task:IPv6Address" - ] - }, - { - "type": "object", - "properties": { - "task:IPAddressPort": { - "$ref": "ts_103280_2017_07#/$defs/IPAddressPort" - } - }, - "required": [ - "task:IPAddressPort" - ] - }, - { - "type": "object", - "properties": { - "task:IPAddressPortRange": { - "$ref": "ts_103280_2017_07#/$defs/IPAddressPortRange" - } - }, - "required": [ - "task:IPAddressPortRange" - ] - }, - { - "type": "object", - "properties": { - "task:E164Number": { - "$ref": "ts_103280_2017_07#/$defs/InternationalE164" - } - }, - "required": [ - "task:E164Number" - ] - }, - { - "type": "object", - "properties": { - "task:FTPAddress": { - "type": "string" - } - }, - "required": [ - "task:FTPAddress" - ] - }, - { - "type": "object", - "properties": { - "task:URL": { - "type": "string" - } - }, - "required": [ - "task:URL" - ] - }, - { - "type": "object", - "properties": { - "task:FQDN": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:FQDN" - ] - }, - { - "type": "object", - "properties": { - "task:EmailAddress": { - "$ref": "ts_103280_2017_07#/$defs/EmailAddress" - } - }, - "required": [ - "task:EmailAddress" - ] - }, - { - "type": "object", - "properties": { - "task:EndpointID": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - } - }, - "required": [ - "task:EndpointID" - ] - }, - { - "type": "object", - "properties": { - "task:DeliveryInformationID": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:DeliveryInformationID" - ] - } - ] - }, - "TaskFlags": { - "type": "object", - "properties": { - "task:TaskFlag": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - } - }, - "required": [] - }, - "NationalLITaskingParameters": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "NationalDeliveryParameters": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "NationalEncryptionDetails": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "LDTaskObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LDTaskObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "task:Reference": { - "$ref": "ts_103280_2017_07#/$defs/LDID" - }, - "task:Status": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:StatusReason": { - "$ref": "ts_103120_Core_2019_10#/$defs/ActionUnsuccesfulInformation" - }, - "task:DesiredStatus": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:RequestDetails": { - "$ref": "#/$defs/RequestDetails" - }, - "task:DeliveryDetails": { - "$ref": "#/$defs/LDDeliveryDetails" - }, - "task:ApprovalDetails": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/ApprovalDetails" - } - }, - "task:CSPID": { - "$ref": "ts_103120_Core_2019_10#/$defs/EndpointID" - }, - "task:HandlingProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:Flags": { - "$ref": "#/$defs/LDTaskFlags" - }, - "task:NationalLDTaskingParameters": { - "$ref": "#/$defs/NationalLDTaskingParameters" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "RequestDetails": { - "type": "object", - "properties": { - "task:Type": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:StartTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:EndTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:ObservedTime": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "task:ObservedTimes": { - "type": "array", - "items": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - } - }, - "task:RequestValues": { - "$ref": "#/$defs/RequestValues" - }, - "task:Subtype": { - "$ref": "#/$defs/RequestSubtype" - } - }, - "required": [] - }, - "RequestValues": { - "type": "object", - "properties": { - "task:RequestValue": { - "type": "array", - "items": { - "$ref": "#/$defs/RequestValue" - }, - "minItems": 1 - } - }, - "required": [] - }, - "RequestValue": { - "type": "object", - "properties": { - "task:FormatType": { - "$ref": "#/$defs/FormatType" - }, - "task:Value": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - } - }, - "required": [ - "task:FormatType", - "task:Value" - ] - }, - "RequestSubtype": { - "type": "object", - "properties": { - "task:RequestSubtype": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "minItems": 1 - } - }, - "required": [] - }, - "LDDeliveryDetails": { - "type": "object", - "properties": { - "task:LDDeliveryDestination": { - "type": "array", - "items": { - "$ref": "#/$defs/LDDeliveryDestination" - }, - "minItems": 1 - } - }, - "required": [] - }, - "LDDeliveryDestination": { - "type": "object", - "properties": { - "task:DeliveryAddress": { - "$ref": "#/$defs/DeliveryAddress" - }, - "task:EncryptionDetails": { - "$ref": "#/$defs/NationalEncryptionDetails" - }, - "task:LDHandoverFormat": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:LDDeliveryProfile": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - }, - "task:NationalDeliveryParameters": { - "$ref": "#/$defs/NationalDeliveryParameters" - } - }, - "required": [] - }, - "LDTaskFlags": { - "type": "object", - "properties": { - "task:LDTaskFlag": { - "type": "array", - "items": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - } - }, - "required": [] - }, - "NationalLDTaskingParameters": { - "type": "object", - "properties": { - "task:CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - } - }, - "required": [ - "task:CountryCode" - ] - }, - "ListOfTrafficPolicyReferences": { - "type": "object", - "properties": { - "task:TrafficPolicyReference": { - "type": "array", - "items": { - "$ref": "#/$defs/TrafficPolicyReference" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TrafficPolicyReference": { - "type": "object", - "properties": { - "task:Order": { - "type": "integer", - "minimum": 1 - }, - "task:ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - } - }, - "required": [] - } - } -} \ No newline at end of file diff --git a/103120/schema/json/ts_103120_TrafficPolicy.schema.json b/103120/schema/json/ts_103120_TrafficPolicy.schema.json deleted file mode 100644 index 1d9619e..0000000 --- a/103120/schema/json/ts_103120_TrafficPolicy.schema.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "$id": "ts_103120_TrafficPolicy_2022_07", - "$defs": { - "TrafficPolicyObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficPolicyObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "tp:TrafficPolicyName": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "tp:TrafficRules": { - "$ref": "#/$defs/ListOfTrafficRuleReferences" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "ListOfTrafficRuleReferences": { - "type": "object", - "properties": { - "tp:TrafficRuleReference": { - "type": "array", - "items": { - "$ref": "#/$defs/TrafficRuleReference" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TrafficRuleReference": { - "type": "object", - "properties": { - "tp:Order": { - "type": "integer", - "minimum": 1 - }, - "tp:ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - } - }, - "required": [ - "tp:Order", - "tp:ObjectIdentifier" - ] - }, - "TrafficRuleObject": { - "type": "object", - "properties": { - "@xsi:type": { - "type": "string", - "enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficRuleObject" - }, - "ObjectIdentifier": { - "$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier" - }, - "CountryCode": { - "$ref": "ts_103280_2017_07#/$defs/ISOCountryCode" - }, - "OwnerIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "Generation": { - "type": "integer", - "minimum": 0 - }, - "ExternalIdentifier": { - "$ref": "ts_103280_2017_07#/$defs/LongString" - }, - "AssociatedObjects": { - "$ref": "ts_103120_Core_2019_10#/$defs/AssociatedObjects" - }, - "LastChanged": { - "$ref": "ts_103280_2017_07#/$defs/QualifiedDateTime" - }, - "NationalHandlingParameters": { - "$ref": "ts_103120_Core_2019_10#/$defs/NationalHandlingParameters" - }, - "tp:Criteria": { - "$ref": "#/$defs/ListOfTrafficCriteria" - }, - "tp:Action": { - "$ref": "ts_103120_Common_2016_02#/$defs/DictionaryEntry" - } - }, - "required": [ - "@xsi:type", - "ObjectIdentifier" - ] - }, - "ListOfTrafficCriteria": { - "type": "object", - "properties": { - "tp:Criteria": { - "type": "array", - "items": { - "$ref": "#/$defs/TrafficCriteria" - }, - "minItems": 1 - } - }, - "required": [] - }, - "TrafficCriteria": { - "oneOf": [ - { - "type": "object", - "properties": { - "tp:IPPolicyCriteria": { - "$ref": "#/$defs/IPPolicyCriteria" - } - }, - "required": [ - "tp:IPPolicyCriteria" - ] - }, - { - "type": "object", - "properties": { - "tp:MobileAccessPolicyCriteria": { - "$ref": "#/$defs/MobileAccessPolicyCriteria" - } - }, - "required": [ - "tp:MobileAccessPolicyCriteria" - ] - } - ] - }, - "IPPolicyCriteria": { - "type": "object", - "properties": { - "tp:IPProtocol": { - "type": "integer", - "minimum": 0 - }, - "tp:SourceIPRange": { - "$ref": "ts_103280_2017_07#/$defs/IPCIDR" - }, - "tp:SourcePortRange": { - "$ref": "ts_103280_2017_07#/$defs/PortRange" - }, - "tp:DestinationIPRange": { - "$ref": "ts_103280_2017_07#/$defs/IPCIDR" - }, - "tp:DestinationPortRange": { - "$ref": "ts_103280_2017_07#/$defs/PortRange" - }, - "tp:BothDirections": { - "type": "boolean" - } - }, - "required": [] - }, - "MobileAccessPolicyCriteria": { - "type": "object", - "properties": { - "tp:APN": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - }, - "tp:DNN": { - "$ref": "ts_103280_2017_07#/$defs/ShortString" - } - }, - "required": [] - } - } -} \ No newline at end of file -- GitLab From 6bef8393d149ae8cc8b2a2baa4727a7e64e181aa Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 9 Jun 2023 11:32:29 +0100 Subject: [PATCH 21/22] Adding JSON to XML conversion --- temp.xml | 2 ++ utils/json_to_xml.py | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 temp.xml create mode 100644 utils/json_to_xml.py diff --git a/temp.xml b/temp.xml new file mode 100644 index 0000000..84b8e2e --- /dev/null +++ b/temp.xml @@ -0,0 +1,2 @@ + +
XXACTOR01XXACTOR02c02358b2-76cf-4ba4-a8eb-f6436ccaea2e2015-09-01T12:00:00.000000ZV1.13.1XXv1.0
07dbbc880-8750-4d3c-abe7-ea4a17646045XXACTOR01W0000012015-09-01T12:00:00Z2015-12-01T12:00:00Z12b36a78b-b628-416d-bd22-404e68a0cd36XXACTOR017dbbc880-8750-4d3c-abe7-ea4a17646045LIID1ETSIInternationalE164442079460223ETSITaskDeliveryTypeIRIandCC192.0.2.0XXRECVER01
diff --git a/utils/json_to_xml.py b/utils/json_to_xml.py new file mode 100644 index 0000000..17764a7 --- /dev/null +++ b/utils/json_to_xml.py @@ -0,0 +1,35 @@ +import sys +import logging +from pprint import pprint +import json +from pathlib import Path +import fileinput + +import xmltodict +import argparse + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument('-v', '--verbose', action='count', help='Verbose logging (can be specified multiple times)') + parser.add_argument('-i', '--input', type=argparse.FileType('r'), default=sys.stdin, help="Path to input file (if absent, stdin is used)") + args = parser.parse_args() + + match args.verbose: + case v if v and v >= 2: + logging.basicConfig(level=logging.DEBUG) + case 1: + logging.basicConfig(level=logging.INFO) + case _: + logging.basicConfig(level=logging.WARNING) + + logging.debug(f"Arguments: {args}") + + s = args.input.read() + args.input.close() + + logging.debug(s) + j = json.loads(s) + + xml = xmltodict.unparse({'HI1Message' : j}, ) + print(xml) \ No newline at end of file -- GitLab From 9356032fe2eed2baaf9a2fb56e36d2c77493e215 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 21 Jun 2023 08:41:08 +0100 Subject: [PATCH 22/22] Removing temp file --- temp.xml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 temp.xml diff --git a/temp.xml b/temp.xml deleted file mode 100644 index 84b8e2e..0000000 --- a/temp.xml +++ /dev/null @@ -1,2 +0,0 @@ - -
XXACTOR01XXACTOR02c02358b2-76cf-4ba4-a8eb-f6436ccaea2e2015-09-01T12:00:00.000000ZV1.13.1XXv1.0
07dbbc880-8750-4d3c-abe7-ea4a17646045XXACTOR01W0000012015-09-01T12:00:00Z2015-12-01T12:00:00Z12b36a78b-b628-416d-bd22-404e68a0cd36XXACTOR017dbbc880-8750-4d3c-abe7-ea4a17646045LIID1ETSIInternationalE164442079460223ETSITaskDeliveryTypeIRIandCC192.0.2.0XXRECVER01
-- GitLab