Commit 5337a2cc authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Fixing mxxContains -> mxxItems

parent 4a558c89
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -28,7 +28,15 @@
                            "ObjectIdentifier" : "d980e335-d17a-471f-bb40-cddf4457fd6b",
                            "Reference" : "LIID",
                            "TargetIdentifier" : {
                                
                                "TargetIdentifierValues" : {
                                    "TargetIdentifierValue" : [ {
                                        "FormatType" : {
                                            "FormatOwner" : "ETSI",
                                            "FormatName" : "InternationalE164"
                                        },
                                        "Value" : "447700900123"
                                    } ]
                                }
                            }
                        }
                    }
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@
          "items": {
            "$ref": "core.json#/$defs/EndpointID"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
+2 −2
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@
          "items": {
            "$ref": "#/$defs/ActionRequest"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
@@ -164,7 +164,7 @@
          "items": {
            "$ref": "#/$defs/ActionResponse"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
+4 −4
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@
          "items": {
            "$ref": "#/$defs/TargetIdentifierValue"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
@@ -165,7 +165,7 @@
          "items": {
            "$ref": "#/$defs/DeliveryDestination"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
@@ -451,7 +451,7 @@
          "items": {
            "$ref": "#/$defs/RequestValue"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
@@ -479,7 +479,7 @@
          "items": {
            "$ref": "#/$defs/LDDeliveryDestination"
          },
          "minContains": 1
          "minItems": 1
        }
      },
      "required": []
+2 −2
Original line number Diff line number Diff line
@@ -52,9 +52,9 @@ class SequenceMapping(ComplexTypeMapping):
                        "items" : TypeMapping.get_type_from_elem(c, xst.namespaces[''])
                    }
                    if c.effective_max_occurs:
                         mapped_type['properties'][c.local_name]['maxContains'] = 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]['minContains'] = c.effective_min_occurs
                         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: