From 48c02dd53a89c399b6aef229776b1f77c079f94f Mon Sep 17 00:00:00 2001 From: Dhaval Mehta <20968146+dhaval-mehta@users.noreply.github.com> Date: Wed, 19 Feb 2020 23:22:05 +0530 Subject: [PATCH] improve error message --- rest_framework/schemas/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index 6317dea24..5f6e37b36 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -74,7 +74,7 @@ class AutoSchema(ViewInspector): def __init__(self, tags=None): if tags and not all(isinstance(tag, str) for tag in tags): - raise ValueError('tags must be a list of string.') + raise ValueError('tags must be a list or tuple of string.') self._tags = tags super().__init__()