swagger-api / swagger-api/swagger-parser

Error: `There are duplicate parameter values` encountered when parsing OpenAPI spec

Open
#2,134 0 comments 1 reaction 0 assignees View on GitHub

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.

swagger.json
error.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.