Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

mixes the parameters and response #18

Open
PavelPolyakov opened this issue Jan 14, 2016 · 0 comments
Open

mixes the parameters and response #18

PavelPolyakov opened this issue Jan 14, 2016 · 0 comments

Comments

@PavelPolyakov
Copy link

Hi,

Another issue which I met.

Here is the yaml:

swagger: "2.0"
info:
  title: Customers API
  description: Customers API
  version: "1.0.0"
host: localhost:3000
schemes:
  - http
  - https
basePath: /v1
produces:
  - application/json
paths:
  /customers:
    post:
      description: Creates new customer
      operationId: newCustomer
      parameters:
        - name: request
          in: body
          description: customer
          required: true
          schema:
            $ref: ./data-structures/NewCustomer.yaml
      responses:
        200:
          description: boolean
          schema:
            properties:
              name:
                default: 'hello'
                type: string
              surname:
                default: 'mollo'
                type: string
definitions:
  Error:
    properties:
      code:
        type: integer
        format: int32
      message:
        type: string
      fields:
        type: string

Here is the result:
image

As you see, for some reason, the input was mixed up with the declared output.
Any thoughts why? And how to fix that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant