Skip to content

Studio - getting error message about redundant parameter in document that previously was fine #1359

Description

@jstavats

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions