-
Notifications
You must be signed in to change notification settings - Fork 4
#93 #33
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
base: main
Are you sure you want to change the base?
#93 #33
Conversation
options.nullable = true; | ||
} | ||
|
||
const arrayNotEmptyMessage = options.isFieldValidConstraintMessage || 'Не должно быть пустым'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я правильно понимаю что этот текст ошибки нигде не будет выводиться?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
То есть мы теряем часть бизнес-логики при таком изменении? Чем она будет замещаться?
А если эта логика лишняя, то прошу пояснить почему именно.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Выше ответил + я не понимаю, почему свойство options.isFieldValidConstraintMessage отвечает именно за текст ошибки при пустом массиве и находится только в RelationIdField
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я не понимаю, почему свойство options.isFieldValidConstraintMessage отвечает именно за текст ошибки при пустом массиве и находится только в RelationIdField
Думаю стоит найти ответ на этот вопрос, в чатах или на мите.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему свойство options.isFieldValidConstraintMessage отвечает именно за текст ошибки при пустом массиве и находится только в RelationIdField
Получилось найти ответ на этот вопрос?
Нужно проверить работу валидатора для RelationField |
@vkoktashev Проверил для этого случая, всё работает: если не передавать many, всё ок, если передать many не массив или в массиве у объекта не будет name, то выдаст ошибку
|
Исправлена логика required/nullable в field декораторах