-
Notifications
You must be signed in to change notification settings - Fork 302
Fix bug in AsyncAPI schema #2638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Please take a look at #2617 (comment) before review |
Lancetnik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but this is an incorrect solution. We should add the "Subscribe" suffix to the handlers' name in the default case. However, if the user creates a subscriber with a manual name assignment, such as broker.subscriber(..., title="some-title"), we should set it up as is, without any mangling.
Also, please revert any changes doesn't relate to the Issue
| assert schema["channels"][channel_key]["address"] == "/" | ||
|
|
||
| assert next(iter(schema["operations"].keys())) == ".Subscribe" | ||
| assert operation_key == ".Subscribe" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that title="/" is a special case and we need mangling here
Removed assertions checking for channel and operation keys in the schema.
|
@kittywaresz can you please fix CI? |
|
@Lancetnik fixed Can you please check my old comment #2439 (comment)? It seems that pre-commit action not configured properly, I think it should be able to commit changes to fix simple issues like this one |
Yes, but I don't know, how to configure it correctly:
|
Fix bug in AsyncAPI schema
No extra "Subscribe" suffix in AsyncAPI operations object if
titleparameter was specified explicitly during subscriber creationFixes #2617
Type of change
Please delete options that are not relevant.
Checklist
just lintshows no errors)just test-coveragejust static-analysis