Repository navigation
fix: change metadata of models and fix minor things - #663
Merged
asyncapi-bot merged 5 commits intoOct 27, 2022
Merged
Conversation
magicmatatjahu
marked this pull request as ready for review
October 26, 2022 11:23
magicmatatjahu
requested review from
asyncapi-bot-eve,
derberg,
fmvilas and
jonaslagoni
as code owners
October 26, 2022 11:23
magicmatatjahu
commented
Oct 27, 2022
| if (typeof additionalItems === 'boolean') return additionalItems; | ||
| if (additionalItems === undefined) return true; | ||
| if (additionalItems === null) return false; | ||
| if (additionalItems === undefined || additionalItems === null) return; |
Member
Author
There was a problem hiding this comment.
We have to be consistent with implementation in v1 parser - current logic in next-major has breaking change in additionalItems and additionalProperties methods and some templates won't work.
Member
Author
There was a problem hiding this comment.
smoya
reviewed
Oct 27, 2022
|
|
||
| export interface ExtensionInterface<T = any> extends BaseModel { | ||
| id(): string; | ||
| version(): string; |
Member
There was a problem hiding this comment.
Please ensure this change is proposed in asyncapi/parser-api#71
smoya
reviewed
Oct 27, 2022
smoya
approved these changes
Oct 27, 2022
smoya
left a comment
Member
There was a problem hiding this comment.
LGTM!! Just one very minor, feel free to discard
Co-authored-by: Sergio Moya <[email protected]>
|
Kudos, SonarCloud Quality Gate passed! |
Member
Author
|
@smoya Thanks! |
Member
Author
|
/rtm |
Contributor
|
🎉 This PR is included in version 2.0.0-next-major.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.








Description
inputto theasyncapimetadata of models.sourcein model metadata now points to the source of file/document, not to the input.x-parser-schema-idso I will add proper if insetExtensionfunction.validateandparsefunctions.version()method fromExtensionmodel - we don't have clarified it in spec, so we shouldn't add that in current api.additionalItemsandadditionalPropertiesmethods from old Schema model - we havw to consistent with old logic.cc @smoya