anitab-org / anitab-org/mentorship-backend

400 Response does not list "Terms and Conditions is not of type 'boolean'" message.

Đang mở
#580 19 bình luận 0 reaction 0 người được giao Xem trên GitHub
Category: Documentation/Training First Timers Only Hacktoberfest
Ngôn ngữ chính
Python
Star
200
Fork
449
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When registering a new user, if Terms and condition is not filled then we see expected error message "terms_and_conditions_checked": "'' is not of type 'boolean'". But this message is not listed under 400 Responses.

**To Reproduce**

Steps to reproduce the behavior:

1. Go to 'User-Register'.
2. {
"name": "testub",
"username": "testub",
"password": "testub123",
"email": "tajof47157@coalamails.com",
"terms_and_conditions_checked":"",
"need_mentoring":true,
"available_to_mentor":true
}
3. Click on 'Execute'.
4. Scroll down to 'Response'.
5.
![Screenshot (61)](https://user-images.githubusercontent.com/50888936/81222966-d371b400-9002-11ea-83e1-31c1e0135e57.png)

**Expected behavior**
All the error messages should be listed under the 400 error messages.

**Desktop (please complete the following information):**
- OS: Windows 10
- Browser Chrome

**Additional context**
This is showing the same error message when "need_mentoring" and "available_to_mentor" is not filled.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.