swagger-py-codegen icon indicating copy to clipboard operation
swagger-py-codegen copied to clipboard

tornado, fix post json error using request body

Open zyfxn opened this issue 6 years ago • 0 comments

  1. fix post json error using request body: json data is bytes, not string, cause validation failed.
  2. support ref in request body:
    post:
      summary: Creates a new user.
      consumes:
        - application/json
      parameters:
        - in: body
          name: user
          description: The user to create.
          schema:
            $ref: '#/definitions/User'     # <----------

zyfxn avatar Nov 19 '19 07:11 zyfxn