Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tornado, fix post json error using request body #147

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

zyfxn
Copy link

@zyfxn zyfxn commented Nov 19, 2019

  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 zyfxn changed the title tornado, fix AttributeError: 'bytes' object has no attribute 'lists' tornado, fix post json in body request with ref Nov 19, 2019
@zyfxn zyfxn changed the title tornado, fix post json in body request with ref tornado, fix post json in request body with ref Nov 19, 2019
@zyfxn zyfxn changed the title tornado, fix post json in request body with ref tornado, fix post json error in request body Nov 20, 2019
@zyfxn zyfxn changed the title tornado, fix post json error in request body tornado, fix post json error using request body Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant