improve spec validation checks
add validate-json APIs to render service