Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

API description parser error #1967

Open
devlaksv opened this issue Sep 30, 2021 · 0 comments
Open

API description parser error #1967

devlaksv opened this issue Sep 30, 2021 · 0 comments

Comments

@devlaksv
Copy link

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)

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

No branches or pull requests

1 participant