Skip to content

booleanが正しくパースされない問題の再現リポジトリ

Notifications You must be signed in to change notification settings

takecchi/nestjs-boolean-problem

Repository files navigation

nestjs-boolean-problem

日本語の説明はこちら

This repository demonstrates the issue of boolean values not being parsed correctly.

It seems that when data is sent using multipart/form-data, boolean values are not parsed correctly.

Execution Steps

1. Start the Server

npm install
npm run start:dev

Swagger

Swagger will be available, so you can also check there: http://localhost:3000/api

2. Send a Request with curl (or Swagger)

curl -X 'POST' \
  'http://localhost:3000/' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'is_banana=true' \
  -F 'is_apple=false'

3. Issue: The return value incorrectly shows is_apple

About

booleanが正しくパースされない問題の再現リポジトリ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published