fix: strip out some unnecessary functionality

This commit is contained in:
b1ek 2024-08-29 19:23:29 +10:00
parent 187092b38a
commit 0acfbf5685
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 12 additions and 3 deletions

View File

@ -19,7 +19,18 @@ paths:
type: object
properties:
user:
$ref: '#/components/schemas/User'
type: object
properties:
last_name:
type: string
name:
type: string
middle_name:
type: string
email:
type: string
phone:
type: string
password:
type: string
example: 'strong_password123'
@ -37,8 +48,6 @@ paths:
| key | val |
| --- | --- |
| `bad_password` | the password is too weak. it must score at least 3 by zxcvbn |
| `bad_email` | email doesn't match the email regex |
| `email_taken` | the email is already registered. user is expected to either log in or reset password |
This error also might be sent by laravel if your body is corrupted