Go REST
N

change validation

Nguyễn Tài 3 months ago 248 views 1 replies

Has the API validation been changed recently?
Because when I run the same test cases from the document, the results are different.

1 reply
Z
zeevy 3 months ago

Validation rules may be updated from time to time. The current validation requirements are:

Users: name (3-150 chars), email (valid format, unique), gender (male/female), status (active/inactive)
Posts: title (3-150 chars), body (5-1000 chars), user_id (must exist)
Comments: name (3-150 chars), email (valid format), body (5-1000 chars), post_id (must exist)
Todos: title (3-150 chars), user_id (must exist)

Check the Swagger docs at /api-docs for the latest schema definitions.

Your reply

Markdown supported