Commit 62dc8425 authored by Walter Featherstone's avatar Walter Featherstone
Browse files

oAuth2Info is not a required parameter & used oneOf for endpoint

parent f102112e
Loading
Loading
Loading
Loading
+13 −28
Original line number Original line Diff line number Diff line
@@ -750,21 +750,6 @@
          "$ref": "#/components/schemas/EndPointInfo.Uri"
          "$ref": "#/components/schemas/EndPointInfo.Uri"
        }
        }
      },
      },
      "EndPointInfo": {
        "description": "This type represents information about a transport endpoint",
        "type": "object",
        "properties": {
          "uris": {
            "$ref": "#/components/schemas/EndPointInfo.Uris"
          },
          "addresses": {
            "$ref": "#/components/schemas/EndPointInfo.Addresses"
          },
          "alternative": {
            "$ref": "#/components/schemas/EndPointInfo.Alternative"
          }
        }
      },
      "LinkType": {
      "LinkType": {
        "description": "This type represents a type of link and may be referenced from data structures",
        "description": "This type represents a type of link and may be referenced from data structures",
        "type": "object",
        "type": "object",
@@ -911,9 +896,6 @@
      "SecurityInfo": {
      "SecurityInfo": {
        "description": "This type represents security information related to a transport",
        "description": "This type represents security information related to a transport",
        "type": "object",
        "type": "object",
        "required": [
          "oAuth2Info"
        ],
        "properties": {
        "properties": {
          "oAuth2Info": {
          "oAuth2Info": {
            "$ref": "#/components/schemas/SecurityInfo.OAuth2Info"
            "$ref": "#/components/schemas/SecurityInfo.OAuth2Info"
@@ -1518,7 +1500,19 @@
            "$ref": "#/components/schemas/TransportInfo.Version"
            "$ref": "#/components/schemas/TransportInfo.Version"
          },
          },
          "endpoint": {
          "endpoint": {
            "$ref": "#/components/schemas/EndPointInfo"
            "description": "This type represents information about a transport endpoint",
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/EndPointInfo.Uris"
              },
              {
                "$ref": "#/components/schemas/EndPointInfo.Addresses"
              },
              {
                "$ref": "#/components/schemas/EndPointInfo.Alternative"
              }
            ]
          },
          },
          "security": {
          "security": {
            "$ref": "#/components/schemas/SecurityInfo"
            "$ref": "#/components/schemas/SecurityInfo"
@@ -2227,12 +2221,6 @@
            "endpoint": {
            "endpoint": {
              "uris": [
              "uris": [
                "/meMp1/service/EntryPoint"
                "/meMp1/service/EntryPoint"
              ],
              "addresses": [
                {
                  "host": "192.0.2.0",
                  "port": 8080
                }
              ]
              ]
            },
            },
            "security": {
            "security": {
@@ -2267,9 +2255,6 @@
              "protocol": "HTTP",
              "protocol": "HTTP",
              "version": "2.0",
              "version": "2.0",
              "endpoint": {
              "endpoint": {
                "uris": [
                  "/meMp1/service/EntryPoint"
                ],
                "addresses": [
                "addresses": [
                  {
                  {
                    "host": "192.0.2.0",
                    "host": "192.0.2.0",
+0 −2
Original line number Original line Diff line number Diff line
@@ -695,8 +695,6 @@ components:
    SecurityInfo:
    SecurityInfo:
      description: This type represents security information related to a transport
      description: This type represents security information related to a transport
      type: object
      type: object
      required:
        - oAuth2Info
      properties:
      properties:
        oAuth2Info:
        oAuth2Info:
          $ref: '#/components/schemas/SecurityInfo.OAuth2Info'
          $ref: '#/components/schemas/SecurityInfo.OAuth2Info'