pahanini / yii2-rest-doc

Yii2 REST doc generator
36 stars 19 forks source link

not implement multiple type #11

Closed 4irik closed 8 years ago

4irik commented 8 years ago
<?php
/**
 * A class.
 */
class A extends \yii\db\ActiveRecord {

  /**
   * @restdoc-field int $id ID
   * @restdoc-field string|null $name Some name
   */
  public function fields() {
    return [
      'id',
      'name',
    ];
  }
}

expected:

Attribute Type Description
id int ID
name string null Some name

actual:

Attribute Type Description
id int ID
name string null
4irik commented 8 years ago

not a bug, in template simbol | not shielded