We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request return [ 'owner_id' => 'integer', 'role_id' => 'integer|in:1,2,3,4,5,6', 'logo' => 'nullable|integer', 'stamp' => 'nullable|integer', 'sign' => 'nullable|integer', 'name' => 'string', 'full_name' => 'string', 'short_name' => 'string', 'kind_activity' => 'string', 'inn' => 'string|unique:companies|min:10|max:12', 'kpp' => 'nullable|string|min:9|max:9', 'ogrn' => 'string|min:13|max:13', 'okpo' => 'string|min:8|max:10', 'legal_address' => 'string', 'region_code' => 'string|max:3', 'site' => 'nullable|string|min:4', 'description' => 'nullable|string|min:10|max:3000|profane:en,ru', <<< ]; Swagger { "owner_id": "1", "role_id": "1", "logo": "1", "stamp": "1", "sign": "1", "name": "qwe qwe", "full_name": "qwe qwe qwe", "short_name": "qwe", "kind_activity": "qwe", "inn": "123123123123", "kpp": "123123123", "ogrn": "1231231231231", "okpo": "1231231231", "legal_address": "qwe", "region_code": "123", "site": "qwe.qwe.qwe", "description": "говно жопа ебля " <<< } Response { "message": "The given data was invalid.", "errors": { "inn": [ "The inn has already been taken." ] } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Request
return [
'owner_id' => 'integer',
'role_id' => 'integer|in:1,2,3,4,5,6',
'logo' => 'nullable|integer',
'stamp' => 'nullable|integer',
'sign' => 'nullable|integer',
'name' => 'string',
'full_name' => 'string',
'short_name' => 'string',
'kind_activity' => 'string',
'inn' => 'string|unique:companies|min:10|max:12',
'kpp' => 'nullable|string|min:9|max:9',
'ogrn' => 'string|min:13|max:13',
'okpo' => 'string|min:8|max:10',
'legal_address' => 'string',
'region_code' => 'string|max:3',
'site' => 'nullable|string|min:4',
'description' => 'nullable|string|min:10|max:3000|profane:en,ru', <<<
];
Swagger
{
"owner_id": "1",
"role_id": "1",
"logo": "1",
"stamp": "1",
"sign": "1",
"name": "qwe qwe",
"full_name": "qwe qwe qwe",
"short_name": "qwe",
"kind_activity": "qwe",
"inn": "123123123123",
"kpp": "123123123",
"ogrn": "1231231231231",
"okpo": "1231231231",
"legal_address": "qwe",
"region_code": "123",
"site": "qwe.qwe.qwe",
"description": "говно жопа ебля " <<<
}
Response
{
"message": "The given data was invalid.",
"errors": {
"inn": [
"The inn has already been taken."
]
}
}
The text was updated successfully, but these errors were encountered: