From e56cae7939ad75899d8b6b5324fac3f66b53fd5f Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 11 Feb 2015 10:37:49 -0800 Subject: [PATCH] Fix a crash when a dict defines a keyschema --- eve_docs/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eve_docs/config.py b/eve_docs/config.py index 16f83c2..15b2f89 100644 --- a/eve_docs/config.py +++ b/eve_docs/config.py @@ -59,7 +59,7 @@ def schema(resource, field=None): # schema prefixed by the field name and a * to denote the wildcard if 'keyschema' in attrs: attrs['schema'] = attrs.pop('keyschema') - for subfield in schema(attrs): + for subfield in schema(attrs, field): subfield['name'] = field + '.*.' + subfield['name'] ret.append(subfield) return ret