1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

Add whitelist of filters to createAttribute

This commit is contained in:
kodumbeats 2021-06-17 13:09:40 -04:00
parent 435f6879f2
commit 160330675a

View file

@ -241,7 +241,7 @@ App::post('/v1/database/collections/:collectionId/attributes')
->param('required', null, new Boolean(), 'Is attribute required?')
->param('signed', true, new Boolean(), 'Is attribute signed?', true)
->param('array', false, new Boolean(), 'Is attribute an array?', true)
->param('filters', [], new ArrayList(new Text(256)), 'Array of filters.', true)
->param('filters', [], new ArrayList(new Whitelist(['encrypt', 'json'])), 'Array of filters.', true)
->inject('response')
->inject('dbForExternal')
->inject('audits')