apiaryio/dredd

API description parser error

devlaksv opened this issue · 0 comments

Hi,

I'm new to dredd and was trying it out. But i got the below error while trying to execute:

error: API description parser error in swagger.yml:2486 (from line 2486 column 6 to line 2499 column 4): Additional properties not allowed: optional

swagger: '2.0'

Below are the lines:

swagger.yml:

    x-alternatives:
      - type: string
        description: password to reset
      - type: string

line 2486 description: password to reset
reset:
"$ref": "#/definitions/reset"
required:
- reset
- reset
optional:
- reset
- reset
x-alternatives:
- "$ref": "#/x-alt-definitions/reset"
- "$ref": "#/x-alt-definitions/reset"
- "$ref": "#/x-alt-definitions/reset"
line 2499 - "$ref": "#/x-alt-definitions/reset"
required:
- step

Dredd version:
dredd v14.0.0 (Darwin 20.6.0; x64)