This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 232727 - Validate default value literals via profile
Summary: Validate default value literals via profile
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Core (show other bugs)
Version: 0.3S4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.3M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 347576 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-19 04:24 EDT by Chris Hartley CLA
Modified: 2011-06-28 11:07 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot (68.91 KB, image/png)
2011-06-20 16:40 EDT, Navid Mehregani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hartley CLA 2008-05-19 04:24:27 EDT
Provide a 'validation pattern' for all of the primitives in the Tigerstripe profile so that validation can be done on entry.

The validation expressions should be editable on the profile PrimitiveTypes form.

e.g. by using REGEX

String : .*
int : -?[0-9]*
unsignedInt : -?[0-9]*

Note the validation doesn't have to be 100%, as long as it provides a reasonable level of validation.
Comment 1 Maria Kolchinskaja CLA 2011-06-14 01:24:56 EDT
*** Bug 347576 has been marked as a duplicate of this bug. ***
Comment 2 Navid Mehregani CLA 2011-06-20 16:40:01 EDT
Created attachment 198292 [details]
Screenshot

Please see attached screenshot for how this should be implemented.
Comment 3 Anton Salnik CLA 2011-06-27 11:44:46 EDT
Мalidation implemented.
Comment 4 Anton Salnik CLA 2011-06-27 11:45:55 EDT
Regular expressions based validation implemented.
Comment 5 Navid Mehregani CLA 2011-06-27 14:31:46 EDT
This looks really good. Thank you!
The only issue is that the char primitive type doesn't have any validation associated with it.  Hence users can type in any default value for a char type and get away with it.  I expected it to have the following validation RE: .{1}
Comment 6 Anton Salnik CLA 2011-06-28 03:55:05 EDT
Validation expression for primitive type 'char' added.
Comment 7 Navid Mehregani CLA 2011-06-28 11:07:52 EDT
Looks good! Thank you!