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)
Beispiel #2
0
 def create(self, inputs):
     outputs = self.on_create(inputs)
     return dynamic.CreateResult(id_=uuid4().hex, outs=outputs)
Beispiel #3
0
 def create(self, props: Any) -> dynamic.CreateResult:
     global _ID
     _ID = _ID + 1
     return dynamic.CreateResult(id_=str(_ID))