Add the support for "detail" and "required" properties with scan modules

Signed-off-by: Connor Yan <126ium@gmail.com>