Studio - getting error message about redundant parameter in document that previously was fine
- Dominant language
- TypeScript
- Stars
- 213
- Forks
- 143
- Avg merge
- 13h 57m
- Merged PRs (30d)
- 11
Description
#### Describe the bug
A clear and concise description of what the bug is.
I had two files that would load and render correctly last week, and today they do not. The error is invalid document. The minimal example below shows the issue.
#### How to Reproduce
Steps to reproduce the issue. Attach all resources that can help us understand the issue:
The code below demonstrates the issue, which specifically is "Channel's "parameters" object has redundant defined "testOne" parameter.":
```
asyncapi: 3.1.0
info:
title: My Title
version: 0.1.0
description: |-
Description Text
defaultContentType: application/json
channels:
Buffer:
address: Get Events
description: The topics ....
parameters:
testOne:
$ref: '#/components/parameters/testParam'
components:
parameters:
testParam:
description: Test Param
```
#### Expected behavior
A clear and concise description of what you expected to happen.
I'd think this should work fine.
Contributor guide
Research direction
Start by loading the minimal AsyncAPI 3.1.0 example from the issue in Studio and reproduce the redundant-parameter validation error. Trace the document-validation entry point that reports the channel parameters error, then add or update regression coverage for this example; done means the document loads and renders without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100