Open RoboSparrow opened 3 years ago
description from #342
related, #50, #223, #341
This should be kept as simple as possible, extended validation as suggested in #50 should be part of the python controller response
backend validation (return 400)
value set: FLAG_MANDATORY value in choices min_value != max_value and min >= value =< max
Flags
remove format flags for time unit, this is flagged by question type and time unit of seconds across all fields
remove flag_hidden? (qtype HIDDEN)
1) fcgi: improve variety of fastcgi error responses err (replaces #134, 500 internal error instead 400 with error description), use
http_json_error
in fcgi helper functions (request_load_answer()
) instead throwing a general error from page handlerExample, addanswer prints error
Could not load answer..
regardless of the answer arg missing, empty, or malformed internal mem error2) extend LOG_ERROR*
with a error codes and a custom
strerror()`3) implement
answer.flags
validation (replaces #342)validation cascade
kvalid_
should do only simple checks (is set? not empty? type?)342: prepared some (disabled) tests invalid_request_return_codes.test