Skip to content

SBE with components and reuse #496

Closed
@lapetiteclef

Description

@lapetiteclef

We have success fully used SBE for some point to point solutions. But in a large project I now have some issues using SBE for a larger schema.

To structure reuse between schemas we use a set of SBE schemas files and preprocessing/merging them to get common types across domains. Main goal is to share the processing and transformations needed at application level (mapping to reuse at SBE component level).

I noticed one side affect. If defining a composite that is referring to other composite and types, (in my case a ref to enum). It is the Java code generation that skips generating the enum if its not refereed somewhere at the top message level. I checked the Ir parser and it looks like its only generate what defined in a message not indirectly what is refereed from the underlying components. If I add a dummy message referring the enum at top message level the underlying components generates correctly.

Is that a bug or is it not supported with a component referring to types not used at message level?

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