From 7d48c02fa377e7b11797b82b5fd92905d74b59dd Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Sun, 17 Sep 2017 00:23:41 +0200 Subject: [PATCH] Expand user schema to support extension_props --- pillar/api/eve_settings.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pillar/api/eve_settings.py b/pillar/api/eve_settings.py index b7c54cf6..3d67755e 100644 --- a/pillar/api/eve_settings.py +++ b/pillar/api/eve_settings.py @@ -127,7 +127,16 @@ users_schema = { 'schema': {'type': 'string'} } } - } + }, + + # Properties defined by extensions. Extensions should use their name + # (see the PillarExtension.name property) as the key, and are free to + # use whatever they want as value (but we suggest a dict for future + # extendability). + 'extension_props': { + 'type': 'dict', + 'required': False, + }, } organizations_schema = {