1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

Get integer constant from Range class

This commit is contained in:
kodumbeats 2021-10-26 16:51:40 -04:00
parent 10172f4216
commit 0312b071ce

View file

@ -677,7 +677,7 @@ App::post('/v1/database/collections/:collectionId/attributes/string')
->label('sdk.response.model', Response::MODEL_ATTRIBUTE_STRING)
->param('collectionId', '', new UID(), 'Collection unique ID. You can create a new collection using the Database service [server integration](/docs/server/database#createCollection).')
->param('attributeId', '', new Key(), 'Attribute ID.')
->param('size', null, new Range(1, APP_DATABASE_ATTRIBUTE_STRING_MAX_LENGTH, self::TYPE_INTEGER), 'Attribute size for text attributes, in number of characters.')
->param('size', null, new Range(1, APP_DATABASE_ATTRIBUTE_STRING_MAX_LENGTH, Range::TYPE_INTEGER), 'Attribute size for text attributes, in number of characters.')
->param('required', null, new Boolean(), 'Is attribute required?')
->param('default', null, new Text(0), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true)
->param('array', false, new Boolean(), 'Is attribute an array?', true)