Skip to content
New issue

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

not work with ru dist #51

Open
w411 opened this issue Sep 17, 2021 · 0 comments
Open

not work with ru dist #51

w411 opened this issue Sep 17, 2021 · 0 comments

Comments

@w411
Copy link

w411 commented Sep 17, 2021

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."
]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant