Hi,

I m new to Swagger, i need to know how to configure Yaml code to Take as 
many as Key:value pairs.  Right now its taking as many key:value pairs, but 
i need it to take without declaring key : string and value: string.

i want it to be "string" : "string". so that I can upload Sourceschema { 
hi:hello, 

how:are,

you:iam good }




paths:
    put:
      summary: to edit Users details 
      description: edit all the users 
      operationId: save
      parameters:
        - name: edit user details
          in: body
          required: true
          schema:
            $ref: "#/definitions/User"
      responses:
        "200":
          description: Success
          schema:
            $ref: "#/definitions/GeneralResponse"
        default:
          description: Error
          schema:
            $ref: "#/definitions/ErrorResponse"



definitions:
  Schema:
    properties:
      key:
        type: string
      value:
        type: string
  GetUserResponse:
    required: 
      - sourceId
      - sourceName
    properties: 
      sourceId:
        type: string
      sourceName:
        type: string
  User:
    required:
      - sourcename
      - sourceId
      - sourceType
    properties: 
      sourcename:
        type: string
      sourceId:
        type: string
      sourceDescription:
        type: string
      sourceType:
        type: string
      sourceSchema:
        type: array
        items:
          type: object
          properties: 
            key:
              type: string
            value: 
              type: string


Please go through the question again to undestand it.

Thank you,
Darshan

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to