Skip to content

asyncapi: setting a header reference on a message is not saved #2737

Open
@ben-lc

Description

@ben-lc

Expected Behavior

When a reference is set on an asyncapi message header, it should be saved.

Actual Behavior

Nothing is saved and an invalid overload error is thrown.

Steps to Reproduce the Problem

  1. Create a new asyncapi spec
  2. Create a new data type
  3. Create a new message
  4. Try to set the data type on the message header reference

Specifications

  • apicurio studio: 0.2.62.Final
  • apicurio data models: 1.1.27

Cause of the issue

In the headers-tab.component.ts following deprecated method is called to update the model :

let command: ICommand = CommandFactory.createChangeHeadersRefCommand_Aai20(nt.type, this.message.parent() as AaiOperation);

But it always throws an invalid overload error.

I will create a PR that uses CommandFactory#createChangePropertyCommand instead as suggested by the doc.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions