Skip to content

Support parsing of methods with parameters#3

Open
giacomodeliberali wants to merge 1 commit intoRunnerly:masterfrom
giacomodeliberali:master
Open

Support parsing of methods with parameters#3
giacomodeliberali wants to merge 1 commit intoRunnerly:masterfrom
giacomodeliberali:master

Conversation

@giacomodeliberali
Copy link

@giacomodeliberali giacomodeliberali commented Nov 17, 2018

Suppose I have a yaml containing something like this:

...
paths:
  "/users/{id}":
    parameters:
    - in: path
      name: id
      description: The user identifier
      required: true
      type: integer
    get:
      operationId: getUserById
      summary: Return the user specified by its identifier
      responses:
        '200':
          description: The requested user
          schema:
            "$ref": "#/definitions/User"
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
...

Since in the blueprints.py the code is looping though all methds, it finds also the parameters property at the same depth of get, and it gets included in ops object, casuing the model validation to fail running pytest.

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