def register_config_key(key, schema, required=False):
 _root_config_schema[u'properties'][key] = schema
 if required:
  _root_config_schema.setdefault(u'required', []).append(key)
 register_schema((u'/schema/config/%s' % key), schema)

def register_config_key ( key , schema , required = False ) : _root_config_schema [ u'properties' ] [ key ] = schema if required : _root_config_schema . setdefault ( u'required' , [ ] ) . append ( key ) register_schema ( ( u'/schema/config/%s' % key ) , schema )
registers a valid root level key for the config .