Commit 4fa747a7 authored by Stavros-Anastasios Charismiadis's avatar Stavros-Anastasios Charismiadis
Browse files

add type string to the components directly and not to the discover api schema

parent fa70c2d6
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -52,8 +52,7 @@ paths:
        name: comm-type
        name: comm-type
        required: false
        required: false
        schema:
        schema:
          type: string
          $ref: '#/components/schemas/CommunicationType'
#          $ref: '#/components/schemas/CommunicationType'
        style: form
        style: form
      - description: Protocol used by the API.
      - description: Protocol used by the API.
        explode: true
        explode: true
@@ -61,8 +60,7 @@ paths:
        name: protocol
        name: protocol
        required: false
        required: false
        schema:
        schema:
          type: string
          $ref: '#/components/schemas/Protocol'
#          $ref: '#/components/schemas/Protocol'
        style: form
        style: form
      - description: AEF identifer.
      - description: AEF identifer.
        explode: true
        explode: true
@@ -79,8 +77,7 @@ paths:
        name: data-format
        name: data-format
        required: false
        required: false
        schema:
        schema:
          type: string
          $ref: '#/components/schemas/DataFormat'
#          $ref: '#/components/schemas/DataFormat'
        style: form
        style: form
      - description: The service API category to which the service API belongs to.
      - description: The service API category to which the service API belongs to.
        explode: true
        explode: true
@@ -1186,6 +1183,7 @@ components:
          type: string
          type: string
      type: object
      type: object
    CommunicationType:
    CommunicationType:
      type: string
      anyOf:
      anyOf:
      - enum:
      - enum:
        - REQUEST_RESPONSE
        - REQUEST_RESPONSE
@@ -1200,6 +1198,7 @@ components:
        \ type subscribe-notify.\n"
        \ type subscribe-notify.\n"
      title: CommunicationType
      title: CommunicationType
    Protocol:
    Protocol:
      type: string
      anyOf:
      anyOf:
      - enum:
      - enum:
        - HTTP_1_1
        - HTTP_1_1
@@ -1217,6 +1216,7 @@ components:
        \ Indicates that the protocol is Websocket.\n"
        \ Indicates that the protocol is Websocket.\n"
      title: Protocol
      title: Protocol
    DataFormat:
    DataFormat:
      type: string
      anyOf:
      anyOf:
      - enum:
      - enum:
        - JSON
        - JSON