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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant