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

Allow simpler declaration (without tuples) in SimpleIO attributes #890

Closed
jsabater opened this Issue Oct 10, 2018 · 1 comment

Comments

2 participants
@jsabater
Copy link

jsabater commented Oct 10, 2018

Currently, in a classic channel such as /app/users/{id}/get, when implementing the service via SimpleIO, one has to declare something like this:

class Get(Service):

    class SimpleIO:
        input_required = (Integer('id'),)
        output_required = ('id', 'username')
        output_optional = ('password', 'name', 'surname', 'email', 'is_admin')
        skip_empty_keys = True

This issue is to request a simpler declaration of the attributes, such as:

class Get(Service):

    class SimpleIO:
        input_required = (Integer('id'))
        output_required = ('id', 'username')
        output_optional = ('password', 'name', 'surname', 'email', 'is_admin')
        skip_empty_keys = True

Thanks in advance.

@dsuch

This comment has been minimized.

Copy link
Collaborator

dsuch commented Oct 18, 2018

Already done.

@dsuch dsuch closed this Oct 18, 2018

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