예제 #1
0
 def create(self, args):
     # intentional bug changing the type
     outs = {
         'x': {
             'my_key_1': {
                 'extra_buggy_key': args['x']['my_key_1'] + '!'
             }
         }
     }
     return dyn.CreateResult(f'schema-{uuid.uuid4()}', outs=outs)
예제 #2
0
 def create(self, inputs):
     outputs = self.on_create(inputs)
     return dynamic.CreateResult(id_=uuid4().hex, outs=outputs)
예제 #3
0
 def create(self, props: Any) -> dynamic.CreateResult:
     global _ID
     _ID = _ID + 1
     return dynamic.CreateResult(id_=str(_ID))