Repository navigation
feat: add flag moveAllToComponents - #216
Merged
asyncapi-bot merged 10 commits intoApr 16, 2024
Merged
Conversation
Contributor
Author
|
@KhudaDad414 @derberg |
Member
|
@aeworxet can you resolve the conflicts? |
|
aeworxet
marked this pull request as ready for review
February 10, 2024 07:31
aeworxet
requested review from
KhudaDad414,
asyncapi-bot-eve,
derberg and
magicmatatjahu
as code owners
February 10, 2024 07:31
Member
|
@aeworxet the tests are failing. |
Contributor
Author
|
This PR is ready for merging. |
|
This was referenced Apr 11, 2024
Contributor
Author
|
/rtm |
This was referenced Apr 17, 2024
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:
Adds support for property
x-originduring optimization of the provided AsyncAPI Document, using its values to assign meaningful names to the moved components. IfOptimizeris unable to findx-originproperties during optimization of the provided AsyncAPI Document, the existing names of components are used as a fallback mechanism.Adds new functionality and therefore new switch (property in the options object)
moveAllToComponents:moveAllToComponents: truewill instructOptimizerto move all AsyncAPI Specification-valid components to thecomponentsobject of the AsyncAPI Document during optimization process.moveDuplicatesToComponents: truehas no impact in this case.moveAllToComponents: falseturns this behavior off,moveDuplicatesToComponents: truecan be used again.moveAllToComponents: true(therefore, the default ismoveDuplicatesToComponents: false.)Adds new switch (property in the options object):
disableOptimizationFor: { schema: false }will instructOptimizerto ADD calculatedschemasto the optimized AsyncAPI Document.disableOptimizationFor: { schema: true }turns this behavior off. Ifschemasexisted in the AsyncAPI Document prior to optimization, they will be left intact.disableOptimizationFor: { schema: false }.Updates existing and adds new Jest tests.
Excludes repository's directory
testfrom SonarCloud's automatic code review.Partial resolution of asyncapi/bundler#141