From a642d0b081f49c908a55022fe8cb1f1973bb5d18 Mon Sep 17 00:00:00 2001 From: bmcool Date: Mon, 16 Jan 2017 01:41:32 +0800 Subject: [PATCH] support enum --- coreapi/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/document.py b/coreapi/document.py index 73b9eeb..7623cb2 100644 --- a/coreapi/document.py +++ b/coreapi/document.py @@ -36,7 +36,7 @@ def _key_sorting(item): # The field class, as used by Link objects: -Field = namedtuple('Field', ['name', 'required', 'location', 'type', 'description', 'example']) +Field = namedtuple('Field', ['name', 'required', 'location', 'type', 'description', 'example', 'enum']) Field.__new__.__defaults__ = (False, '', '', '', None)