docs: Make extensiondev example and API docs for validate_environment() match