dredd
dredd copied to clipboard
Tests get skipped when using brackets in get parameter name
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)
Related bug: https://github.com/apiaryio/dredd/issues/1908