Open
Description
Expected Behavior
When a reference is set on an asyncapi message payload, it should be saved.
Actual Behavior
Nothing is saved
Cause of the issue
ChangePayloadRefCommand_Aai20
command is called to update the payload ref, but the payload is not properly initialized when it is null :
Object payload = message.payload;
if (payload == null) {
payload = JsonCompat.objectNode(); // it misses 'message.payload = payload' to set the newly created payload on the message
}
Object oldValue = JsonCompat.getProperty(payload, "$ref");
Steps to Reproduce the Problem
- Create a new asyncapi spec
- Create a new data type
- Create a new message
- Try to set the data type on the message payload reference
Specifications
- apicurio studio: 0.2.62.Final
- apicurio data models: 1.1.27
Metadata
Metadata
Assignees
Labels
No labels
Activity