From a9cdf6d5613778a333c1448ed0c2499d03d711f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20V=C3=AEjdea?= Date: Wed, 21 Mar 2018 13:38:56 +0200 Subject: [PATCH] Fix type of properties in Schema docstring Fixes #87. --- src/drf_yasg/openapi.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drf_yasg/openapi.py b/src/drf_yasg/openapi.py index 3d51093..c76b03b 100644 --- a/src/drf_yasg/openapi.py +++ b/src/drf_yasg/openapi.py @@ -425,7 +425,7 @@ class Schema(SwaggerDict): :param str format: value format, see OpenAPI spec :param list enum: restrict possible values :param str pattern: pattern if type is ``string`` - :param list[.Schema,.SchemaRef] properties: object properties; required if `type` is ``object`` + :param dict[str,(.Schema,.SchemaRef)] properties: object properties; required if `type` is ``object`` :param bool,.Schema,.SchemaRef additional_properties: allow wildcard properties not listed in `properties` :param list[str] required: list of requried property names :param .Schema,.SchemaRef items: type of array items, only valid if `type` is ``array`` diff --git a/tox.ini b/tox.ini index 34b53c9..714a3be 100644 --- a/tox.ini +++ b/tox.ini @@ -66,4 +66,4 @@ known_third_party = coreapi,coreschema,datadiff,dj_database_url,django,django_filters,djangorestframework_camel_case,flex,gunicorn, inflection,pygments,pytest,rest_framework,ruamel,setuptools_scm,swagger_spec_validator,uritemplate,user_agents, whitenoise -known_first_party = drf_yasg,testproj,articles,snippets,users,urlconfs +known_first_party = drf_yasg,testproj,articles,people,snippets,todo,users,urlconfs