user-api: use simple schema validator to be consistent how we validate between API and web views.

This commit is contained in:
Marcin Kuzminski 2017-06-21 15:36:24 +02:00
parent 749f784ad9
commit 9c7ed2caf3
4 changed files with 123 additions and 14 deletions

View file

@ -20,8 +20,8 @@
import logging
from rhodecode.api import jsonrpc_method, JSONRPCError, JSONRPCForbidden, \
JSONRPCValidationError
from rhodecode.api import (
jsonrpc_method, JSONRPCError, JSONRPCForbidden, JSONRPCValidationError)
from rhodecode.api.utils import (
Optional, OAttr, store_update, has_superadmin_permission, get_origin,
get_user_or_error, get_user_group_or_error, get_perm_or_error)