-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix/author #63
base: dev
Are you sure you want to change the base?
Fix/author #63
Conversation
@@ -959,7 +959,7 @@ def clone( | |||
self, | |||
name: str, | |||
display_name: str, | |||
author: str, | |||
author: Optional[str], |
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.
you should use alias for type
smth like
AUTHOR_T = Optional[str]
and use it
Если поле author = Optional, то нужна отдельная валидация на это поле, что добавляет много геморроя. Есть варик в distrubutions есть функция get_current_user , в которую можно запихнуть валидацию. В общем нужно определить, насколько это поле нужно сервису и насколько разработчику -- то что нужно еще определить |
Make author field Optional