From 78824c9c2a8261e130ddd1d89e989cf5a6573111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 20 Sep 2016 15:59:35 +0200 Subject: [PATCH] Allow extensions to define custom project properties --- 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 e128c2e1..69da8704 100644 --- a/pillar/api/eve_settings.py +++ b/pillar/api/eve_settings.py @@ -623,7 +623,16 @@ projects_schema = { 'permissions': { 'type': 'dict', 'schema': permissions_embedded_schema - } + }, + + # 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, + }, } activities_subscriptions_schema = {