From 4e7fa28744e68c2b14b79bc47d1dcae5c54fb44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20V=C3=AEjdea?= Date: Fri, 27 Apr 2018 01:49:32 +0300 Subject: [PATCH] Superficial fixes --- src/drf_yasg/openapi.py | 2 +- .../templates/drf-yasg/redoc-alpha.html | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 src/drf_yasg/templates/drf-yasg/redoc-alpha.html diff --git a/src/drf_yasg/openapi.py b/src/drf_yasg/openapi.py index 5aee8168..7e7210af 100644 --- a/src/drf_yasg/openapi.py +++ b/src/drf_yasg/openapi.py @@ -437,7 +437,7 @@ def __init__(self, title=None, description=None, type=None, format=None, enum=No super(Schema, self).__init__(**extra) if required is True or required is False: # common error - raise AssertionError("the `requires` attribute of schema must be an " + raise AssertionError("the `required` attribute of schema must be an " "array of required property names, not a boolean!") assert type, "type is required!" self.title = title diff --git a/src/drf_yasg/templates/drf-yasg/redoc-alpha.html b/src/drf_yasg/templates/drf-yasg/redoc-alpha.html deleted file mode 100644 index a89c2759..00000000 --- a/src/drf_yasg/templates/drf-yasg/redoc-alpha.html +++ /dev/null @@ -1,18 +0,0 @@ -{% load static %} - - - - {{ title }} - - - - - - - - - - - - -