example
field ? I described definition object - for each field i have specified example
value, and in Swagger UI i can actually see my example, but when i run dredd test - it generates it's own values and doesn't take values from example
hooks.before('/dev/lead > Creates a new Bla > 200 > application/json', transaction => {
hooks.log('------------------------YAY------------------------')
var requestBody = JSON.parse(transaction.request.body)
hooks.log('Before lead Transaction request is ', JSON.stringify(requestBody, null, 2))
hooks.log('Before lead Transaction request is ', transaction)
hooks.log('Before lead Transaction request is ', transaction.fullPath)
})
hook: ------------------------YAY------------------------
hook: Before lead Transaction request is
hook: Before lead Transaction request is
hook: Before lead Transaction request is
/v1/configurations/${fundTargetId}
,Hello everybody. I'm using dredd and we're making a migration from swagger 2 to openApi 3. I've a problem with the new openapi file. Dredd says me "Compilation error in file './swagger.yaml': Required URI parameter 'repository' has no example or default value."
But it is already defined on the openapi file
paths:
'/repository/{repository}/skills':
get:
tags:
- skills
summary: Get some skills
description: Get some skills
operationId: skillsGET
security:
- token: []
x-exegesis-controller: skills
parameters:
- name: repository
in: path
description: Ref of the repository
required: true
schema:
type: string
example: content@cockpitRecette-demo