Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ben-lc opened this issue Aug 14, 2024 · 0 comments
Open

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

ben-lc opened this issue Aug 14, 2024 · 0 comments

Comments

@ben-lc
Copy link

ben-lc commented Aug 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant