swagger-api / swagger-api/swagger-parser
Error: `There are duplicate parameter values` encountered when parsing OpenAPI spec
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 867
- Forks
- 560
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 7
Description
Description
I'm currently developing a Ballerina client connector for the SmartSheet REST API [1]. While parsing the official OpenAPI spec provided by SmartSheet, I’m encountering the following error:
paths.'/favorites'(get).parameters. There are duplicate parameter values
paths.'/favorites'(get).parameters. There are duplicate parameter values
paths.'/favorites/{favoriteType}'. There are duplicate parameter values
...
[1] - https://smartsheet.redoc.ly/
I've attached both the OpenAPI specification and the error log generated during parsing for reference.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the attached swagger.json and error.txt, then reproduce the parser errors for the reported paths, including /favorites and /favorites/{favoriteType}. Trace where duplicate parameter values are detected and confirm that the SmartSheet specification can be parsed without those errors; the issue does not identify a repository file or test to update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100