doc: add validate options.