Skip to content

feat: add Components, Security Requirement(s) models and other improvements - #71

Merged
asyncapi-bot merged 29 commits into
asyncapi:masterfrom
smoya:feat/components
Feb 8, 2023
Merged

asyncapi-bot merged 29 commits into
asyncapi:masterfrom
smoya:feat/components

Conversation

@smoya

@smoya smoya commented Aug 25, 2022 •

Copy link
Copy Markdown
Member

Description

Some tooling need to access components directly to components so the model is required. Also added CorrelationIds as it was needed by the Components model.
Examples of why this is needed:

This PR also adds the models for SecurityRequirement, MessageExample and the collection of those, SecurityRequirements and MessageExamples.
It also includes some fixes on types.

@smoya smoya changed the title feat: add 'components' and 'correlationIds' models feat: add 'components' model Aug 26, 2022
Comment thread docs/v1.md Resolved
@smoya
smoya requested a review from magicmatatjahu August 26, 2022 09:02

@magicmatatjahu magicmatatjahu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last comment 😄

Comment thread docs/v1.md Resolved
magicmatatjahu
magicmatatjahu previously approved these changes Aug 26, 2022

@magicmatatjahu magicmatatjahu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

fmvilas
fmvilas previously approved these changes Aug 26, 2022

@fmvilas fmvilas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@smoya

smoya commented Aug 29, 2022

Copy link
Copy Markdown
Member Author

@fmvilas @magicmatatjahu I added the operations() method to Components as I forgot to add it.

Comment thread docs/v1.md Resolved
magicmatatjahu
magicmatatjahu previously approved these changes Aug 29, 2022
@smoya smoya changed the title feat: add 'components' model feat: add Components, and Security Requirement(s) models Aug 29, 2022
@smoya
smoya requested a review from magicmatatjahu August 29, 2022 13:51
@smoya

smoya commented Aug 29, 2022

Copy link
Copy Markdown
Member Author

I decided to include more things into this PR so we do the review at once.

I just added:

models for SecurityRequirement and the collection of those, SecurityRequirements.
It also includes minor fixes on types.

cc @magicmatatjahu @jonaslagoni

Comment thread docs/v1.md Resolved
@smoya
smoya requested a review from magicmatatjahu October 10, 2022 11:27
Comment thread docs/v1.md Resolved
Co-authored-by: Maciej Urbańczyk <[email protected]>
@smoya

smoya commented Oct 27, 2022

Copy link
Copy Markdown
Member Author

According to asyncapi/parser-js#663 (comment), version() from Extension has been removed.

@fmvilas

fmvilas commented Nov 14, 2022

Copy link
Copy Markdown
Contributor

@magicmatatjahu can you please take care of this PR while Sergio is out?

@magicmatatjahu

Copy link
Copy Markdown
Member

@fmvilas No problem, I'm up-to-date with it :)

@fmvilas

fmvilas commented Dec 23, 2022

Copy link
Copy Markdown
Contributor

What's missing here, @magicmatatjahu? Can we already merge it or are you still working on it?

@smoya

smoya commented Feb 2, 2023

Copy link
Copy Markdown
Member Author

Is there something blocking this PR to be merged? Cc @magicmatatjahu @jonaslagoni

Otherwise, i feel we can proceed.

@magicmatatjahu

Copy link
Copy Markdown
Member

@smoya New things from 3.0.0 like server'shost, pathName, operation's reply object etc. I will have new things in this PR asyncapi/parser-js#708 but I need propagate them in this PR.

@smoya

smoya commented Feb 2, 2023 •

Copy link
Copy Markdown
Member Author

@smoya New things from 3.0.0 like server'shost, pathName, operation's reply object etc. I will have new things in this PR asyncapi/parser-js#708 but I need propagate them in this PR.

I would rather merge this one, which is being old enough and with tons of changes and then work on top of it. otherwise this PR is growing and lacking context with every day it passes.

@smoya

smoya commented Feb 8, 2023 •

Copy link
Copy Markdown
Member Author

@smoya New things from 3.0.0 like server'shost, pathName, operation's reply object etc. I will have new things in this PR asyncapi/parser-js#708 but I need propagate them in this PR.

I would rather merge this one, which is being old enough and with tons of changes and then work on top of it. otherwise this PR is growing and lacking context with every day it passes.

wdyt about this @jonaslagoni @magicmatatjahu @derberg @fmvilas ?

@fmvilas

fmvilas commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

Whatever works best for you guys. Just let's make sure to have this (and the parser) as soon as possible.

@magicmatatjahu

magicmatatjahu commented Feb 8, 2023 •

Copy link
Copy Markdown
Member

Ok I think we can merge it :) I fixed all bugs that I found. I removed some not implemented methods like extension(name: string) => Extension - it won't be a breaking change when we will add that method in e.g. 2.1.0.

In next PR I will add methods/objects related to the 3.0.0 version

cc @smoya @jonaslagoni Could you accept it?

@magicmatatjahu

Copy link
Copy Markdown
Member

/rtm

@asyncapi-bot
asyncapi-bot merged commit 31759dc into asyncapi:master Feb 8, 2023
@magicmatatjahu
magicmatatjahu deleted the feat/components branch February 8, 2023 14:25
@asyncapi-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants