Skip to content
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

Implement a Compiler Plugin to Validate WebSub Service #1099

Closed
6 tasks done
ayeshLK opened this issue Mar 14, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-websub#166
Closed
6 tasks done
Assignees
Labels
module/websub Points/4 Team/PCM Protocol connector packages related issues Type/Task Verson/SwanLakeDump All issues planned for Swan Lake GA release

Comments

@ayeshLK
Copy link
Member

ayeshLK commented Mar 14, 2021

Implement a compiler extension to validate websub:SubscriberService syntax at compile time.

Task Breakdown

  • Validate only remote methods implemented in websub:SubscriberService
  • Validate no additional methods allowed (onSubscriptionValidationDenied / onSubscriptionVerification / onEventNotification are allowed methods)
  • Validate whether onEventNotification method is implemented
  • Validate method signatures of allowed implemented methods
  • Validate whether websub:SubscriberServiceConfig annotation configuration is present
  • Validate whether websub:ListenerConfiguration or else http:Listener provided for websub:Listener initialization

Subtask of #823

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/websub Points/4 Team/PCM Protocol connector packages related issues Type/Task Verson/SwanLakeDump All issues planned for Swan Lake GA release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants