title: How to set boolean validation in typeorm and nest.js
body: <p>I developed apps by <code>nest.js</code> and <code>typeorm</code>. The entity is validated like following.</p>
  <p>I have some question about <code>boolean</code> validation.</p>
  <p><code>event.dto.ts</code></p>
  <pre><code>export class EventRequest {
      @IsInt()  
      id: number;
      
      @IsInt()
      userId: number;
      
      @IsString()
      title: string;
        
      @IsDateString()
      date: Date;
      
      @IsBoolean()
      islastDate: boolean;
  </code></pre>
  <p><code>event.entity.ts</code></p>
  <pre><code> @Entity('events')
    export class Event extends BaseEntity {
      @PrimaryGeneratedColumn('increment', { type: 'int' })
      id: number;
    
      @ManyToOne(type =&gt; User, user =&gt; user.events)
      @JoinColumn()
      readonly user?: User;
      userId: User;
  
      @Column('varchar')
      title: string;
    
      @Column('date')
      date: Date;
    
      @Column('bool')
      isLastdate: boolean;
  </code></pre>
  <p>I send following request to server</p>
  <pre><code>{
  &quot;id&quot;:0,
  &quot;userId&quot;:1,
  &quot;title&quot;:&quot;mytest&quot;,
  &quot;date&quot;:&quot;2011-10-05T14:48:00.000Z&quot;,
  &quot;isLastdate&quot;:0,
  &quot;beginTime&quot;:&quot;2011-10-05T14:48:00.000Z&quot;,
  &quot;endTime&quot;:&quot;2011-10-05T14:48:00.000Z&quot;,
  &quot;place&quot;:&quot;Tokyo&quot;,
  &quot;labelCd&quot;:1,
  &quot;detail&quot;:&quot;test&quot;
  }
  </code></pre>
  <p>The following error was returned.
  What should I set to <code>boolean</code> value ?</p>
  <pre><code>{
      &quot;statusCode&quot;: 400,
      &quot;message&quot;: [
          &quot;islastDate must be a boolean value&quot;
      ],
      &quot;error&quot;: &quot;Bad Request&quot;
  }
  </code></pre>
  <p>Here is my <code>DB</code> generated above entity.</p>
  <pre><code>
  mysql&gt; desc events;
  +------------+--------------+------+-----+----------------------+----------------+
  | Field      | Type         | Null | Key | Default              | Extra          |
  +------------+--------------+------+-----+----------------------+----------------+
  | id         | int(11)      | NO   | PRI | NULL                 | auto_increment |
  | title      | varchar(255) | NO   |     | NULL                 |                |
  | date       | date         | NO   |     | NULL                 |                |
  | place      | varchar(255) | NO   |     | NULL                 |                |
  | detail     | varchar(255) | NO   |     | NULL                 |                |
  | createdAt  | datetime(6)  | NO   |     | CURRENT_TIMESTAMP(6) |                |
  | updatedAt  | datetime(6)  | NO   |     | CURRENT_TIMESTAMP(6) |                |
  | deletedAt  | datetime(6)  | YES  |     | NULL                 |                |
  | beginTime  | time         | NO   |     | NULL                 |                |
  | endTime    | time         | NO   |     | NULL                 |                |
  | labelCd    | int(11)      | NO   |     | NULL                 |                |
  | userId     | int(11)      | YES  | MUL | NULL                 |                |
  | isLastdate | tinyint(4)   | NO   |     | NULL                 |                |
  +------------+--------------+------+-----+----------------------+----------------+
  </code></pre>
  <p>Are there something wrong with my understand ?</p>
  <p>What is boolean value ?</p>
  <p>Thanks</p>