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

Tests get skipped when using brackets in get parameter name #1367

Open
yourithielen opened this issue May 21, 2019 · 1 comment
Open

Tests get skipped when using brackets in get parameter name #1367

yourithielen opened this issue May 21, 2019 · 1 comment

Comments

@yourithielen
Copy link

yourithielen commented May 21, 2019

Describe the bug
Tests get skipped when using brackets in get parameter name

To Reproduce

openapi: 3.0.0
info:
  version: "1.1.1"
  title:  API
  description: 'TODO: Add a description'
paths:
  '/test-cases':
    get:
      summary: Test
      parameters:
        - name: filter[test]
          in: query
          required: false
          example: 1
          description: Test
      responses:
        '200':
          description: ''
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    type: string

Output

warn: API description URI template expansion warning in /var/www/api/spec.oai (API > /test-cases > Test > 200 > application/vnd.api+json): Ambiguous URI parameter in template: /test-cases{?filter%5Btest%5D}
Parameter not defined in API description document: filter[test]
complete: Tests took 3ms

What is in your dredd.yml?

color: true
dry-run: null
hookfiles: null
language: nodejs
require: null
server: npm start
server-wait: 3
init: false
custom: {}
names: false
only: []
reporter: []
output: []
header: []
sorted: false
inline-errors: false
details: false
method: []
loglevel: warning
path: []
hooks-worker-timeout: 5000
hooks-worker-connect-timeout: 1500
hooks-worker-connect-retry: 500
hooks-worker-after-connect-wait: 100
hooks-worker-term-timeout: 5000
hooks-worker-term-retry: 500
hooks-worker-handler-host: 127.0.0.1
hooks-worker-handler-port: 61321
config: ./dredd.yml
blueprint: ../../../api/spec.oai
endpoint: 'api'
user: null

What's your dredd --version output?

dredd v11.1.0 (Linux 5.0.0-15-generic; x64)

@deivid11
Copy link

Related bug: #1908

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

No branches or pull requests

3 participants