SimpleIO and parameter-specific default values


I am using SimpleIO to define parameters to my services. I want to define defaults for some of the parameters. I know there is the ‘default_value’ attribute, but that is a generic fallback value. What I want is specific defaults for some parameter. I know I can implement this is the handle() method, but it would be nice if this could be declarative.

Regards, Jan

Hello @jjmurre,

would that do the trick?

class SimpleIO:
  input_required = ('abc', Int('zxc', default=777))

Wow, that’s terrific!

I could not find this in the 2.0.7 documentation.

Regards, Jan