Exemplo n.º 1
0
 public function getDefinition()
 {
     $sb = $this->getSchemaBuilder('user');
     $sb->integer('id');
     $sb->integer('status');
     $sb->string('name')->setPattern('[A-z0-9\\-\\_\\.]{3,32}');
     $sb->string('email');
     $sb->arrayType('scopes')->setPrototype(Property::getString('name'));
     $sb->arrayType('apps')->setPrototype($this->getSchema('Fusio\\Impl\\Backend\\Schema\\App'));
     $sb->dateTime('date');
     return $sb->getProperty();
 }
Exemplo n.º 2
0
 public function getDefinition()
 {
     $sb = $this->getSchemaBuilder('config');
     $sb->setAdditionalProperties(Property::getString());
     $config = $sb->getProperty();
     $sb = $this->getSchemaBuilder('connection');
     $sb->integer('id');
     $sb->string('name')->setPattern('[A-z0-9\\-\\_]{3,64}');
     $sb->string('class');
     $sb->complexType('config', $config);
     return $sb->getProperty();
 }
Exemplo n.º 3
0
 public function getDefinition()
 {
     $sb = $this->getSchemaBuilder('app');
     $sb->integer('id');
     $sb->integer('userId');
     $sb->integer('status');
     $sb->string('name')->setPattern('[A-z0-9\\-\\_]{3,64}');
     $sb->string('url');
     $sb->string('parameters');
     $sb->string('appKey');
     $sb->string('appSecret');
     $sb->dateTime('date');
     $sb->arrayType('scopes')->setPrototype(Property::getString('name'));
     $sb->arrayType('tokens')->setPrototype($this->getSchema('Fusio\\Impl\\Backend\\Schema\\App\\Token'));
     return $sb->getProperty();
 }