kreuzwerker / DKT.flows-engine

Apache License 2.0
0 stars 0 forks source link

[Resource:GraphQL] Enhance services and steps with configSchema / configParams #35

Closed johipsum closed 7 years ago

johipsum commented 7 years ago

add configSchema to services and a step configParams validator based on these configSchemas. e.g.

service.configSchema = {
  '1st_line_header': {
     position: 0,
     label: '1st Line Header',
     defaultValue: false,
     type: integer,
     rules: [
       {type: MAX, value: 100, required: true},
       {type: NOT_NEGATIVE}
     ]
   }
}

step.configParams = {
  '1st_line_header': { value: 20 },
}