Add typed multi-file fragment refs and Maven IT coverage for bundling#66
Merged
bascunansalvador merged 8 commits intomainfrom Mar 20, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR expands and stabilizes multi-file $ref handling across parsing, validation, bundling, and Maven plugin integration tests.
Why
We hit real-world multi-file contract scenarios that were only partially supported:
The goal was to support practical multi-file authoring while preserving existing full AsyncAPI behavior.
Key changes
New Maven plugin integration tests (IT)
Added two new invoker IT projects under asyncapi-generator-maven-plugin/src/test/it/:
Commands used to validate
Core:
mvn -pl asyncapi-generator-core testMaven plugin IT (targeted):
mvn -pl asyncapi-generator-maven-plugin -Dinvoker.test=bundle-multifile-schema-fragment,bundle-multifile-channel-fragment invoker:install invoker:runPractical outcome
You can now author contracts with a cleaner multi-file structure where shared content can live in plain YAML fragments and be referenced from AsyncAPI documents, including channel-level fragment references, and get correct bundled output with regression coverage at plugin IT level.
Follow-up (planned refactor)
Deferred intentionally to keep this PR focused and safe: