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

Relax restriction on return value of service resource methods #612

Closed
jclark opened this issue Sep 28, 2020 · 0 comments
Closed

Relax restriction on return value of service resource methods #612

jclark opened this issue Sep 28, 2020 · 0 comments
Assignees
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design

Comments

@jclark
Copy link
Collaborator

jclark commented Sep 28, 2020

Currently service resource methods are required to have a return value that is a subtype of error?.

This issue removes this restriction in order to support #609. For a simple request-response interchange pattern, we allow the return value of the resource method to be treated as the response.

@jclark jclark self-assigned this Sep 28, 2020
@jclark jclark added this to the Swan Lake November preview milestone Sep 28, 2020
@jclark jclark added Type/Improvement Enhancement to language design Area/Lang Relates to the Ballerina language specification labels Sep 28, 2020
@jclark jclark closed this as completed in 97d9062 Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

1 participant