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

Fix OpenAPI 2 generator to produces vallid OpenAPI 2 #3

Merged
merged 4 commits into from
Nov 11, 2018
Merged

Fix OpenAPI 2 generator to produces vallid OpenAPI 2 #3

merged 4 commits into from
Nov 11, 2018

Conversation

danieltheodosius
Copy link
Contributor

Changes:

  • rename #/components/schemas/... into #/definitions/...
  • remove requestBody and replace it with body parameters
  • append requestContentType as consumes attribute

Before change:

      parameters: []
      requestBody:
        $ref: '#/components/schemas/CreateUserRequest'
      responses:
        '200':
          schema:
            $ref: '#/components/schemas/CreateUserResponse'
          description: ''
        default:
          description: ''

After the change:

      consumes:
        - application/json
      parameters:
        - in: body
          name: body
          description: TODO
          required: true
          schema:
            $ref: '#/definitions/CreateUserRequest'
      responses:
        '200':
          schema:
            $ref: '#/definitions/CreateUserResponse'
          description: ''
        default:
          description: ''

@fwouts fwouts merged commit 002063f into airtasker:master Nov 11, 2018
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.

2 participants