Skip to content
Snippets Groups Projects
Commit b20e1ee9 authored by canterburym's avatar canterburym
Browse files

Merge branch 'cr/103120/069' into 'meeting/LI66'

TS 103 120 CR069 - JSON schema fixes

See merge request li/schemas-definitions!146
parents 223309ab fac77b0a
No related branches found
No related tags found
2 merge requests!146TS 103 120 CR069 - JSON schema fixes,!139Output of LI#66
Pipeline #17880 passed
{
"$id": "ts_103120_Authorisation_2020_09",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"AuthorisationObject": {
"type": "object",
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject"
"enum": [
"{http://uri.etsi.org/03120/common/2020/09/Authorisation}AuthorisationObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......
{
"$id": "ts_103120_Common_2016_02",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"ETSIVersion": {
"allOf": [
......
{
"$id": "ts_103120_Core_2019_10",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"ObjectIdentifier": {
"$ref": "ts_103280_2017_07#/$defs/UUID"
......
{
"$id": "ts_103120_Delivery_2019_10",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"DeliveryObject": {
"type": "object",
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2019/10/Delivery}DeliveryObject"
"enum": [
"{http://uri.etsi.org/03120/common/2019/10/Delivery}DeliveryObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......
{
"$id": "ts_103120_Document_2020_09",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"DocumentObject": {
"type": "object",
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2020/09/Document}DocumentObject"
"enum": [
"{http://uri.etsi.org/03120/common/2020/09/Document}DocumentObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......
{
"$id": "ts_103120_Notification_2016_02",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"NotificationObject": {
"type": "object",
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2016/02/Notification}NotificationObject"
"enum": [
"{http://uri.etsi.org/03120/common/2016/02/Notification}NotificationObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......
{
"$id": "ts_103120_Task_2020_09",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"LITaskObject": {
"type": "object",
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject"
"enum": [
"{http://uri.etsi.org/03120/common/2020/09/Task}LITaskObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......@@ -372,7 +375,9 @@
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LDTaskObject"
"enum": [
"{http://uri.etsi.org/03120/common/2020/09/Task}LDTaskObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......@@ -604,7 +609,9 @@
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2020/09/Task}LPTaskObject"
"enum": [
"{http://uri.etsi.org/03120/common/2020/09/Task}LPTaskObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......
{
"$id": "ts_103120_TrafficPolicy_2022_07",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"TrafficPolicyObject": {
"type": "object",
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficPolicyObject"
"enum": [
"{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficPolicyObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......@@ -79,7 +82,9 @@
"properties": {
"@xsi:type": {
"type": "string",
"enum": "{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficRuleObject"
"enum": [
"{http://uri.etsi.org/03120/common/2022/07/TrafficPolicy}TrafficRuleObject"
]
},
"ObjectIdentifier": {
"$ref": "ts_103120_Core_2019_10#/$defs/ObjectIdentifier"
......
......@@ -35,7 +35,7 @@ class SequenceMapping(ComplexTypeMapping):
# mapped_type['__DESCENDENT_OF__'] = TypeMapping.get_ref_for(xst.base_type, xst.namespaces[''])
mapped_type['properties']['@xsi:type'] = {
"type" : "string",
"enum" : xst.name
"enum" : [xst.name]
}
mapped_type['required'].append('@xsi:type')
# if xst.abstract:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment