You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TestMessagePayload is a schema from the AsyncAPI specification required in messagestypeTestMessagePayloadstruct {
Str1string`json:"str1" validate:"required"`Str2string`json:"str2" validate:"required"`Str3*int64`json:"str3,omitempty"`
}
// TestMessage is the message expected for 'TestMessage' channel.// NOTE: test messagetypeTestMessagestruct {
// Payload will be inserted in the message payloadPayloadTestMessagePayload
}
Expected:
// TestMessagePayloadOneOf is a schema from the AsyncAPI specification required in messagestypeTestMessagePayloadOneOfstruct {
SomethingPayloadSomethingElsePayload
}
typeSomethingPayloadstruct {
Str1string`json:"str1" validate:"required"`Str2string`json:"str2" validate:"required"`
}
typeSomethingElsePayloadstruct {
Str3*int64`json:"str3,omitempty"`
}
// TestMessage is the message expected for 'TestMessage' channel.// NOTE: test messagetypeTestMessagestruct {
// Payload will be inserted in the message payloadPayloadTestMessagePayload
}
It seems like we are skipping one object during the generation of oneof messages.
Thanks
The text was updated successfully, but these errors were encountered:
Allo !
I noticed a generation issue affecting OneOf fields:
When generating this:
Generates:
Expected:
It seems like we are skipping one object during the generation of oneof messages.
Thanks
The text was updated successfully, but these errors were encountered: