Add builder value validations #28
Labels
base logic
Issues that affect how the base logic of the project
builder
Issues related to the builder functionality
enhancement
Issues related to a proposed enchancement to the project
feature request
help wanted
Need to add logic to validate builder values. For the most part, this just means making sure that the
type
of the value of a variable passed to the builder matches the one expected.Currently, any builder value looks for the following token
```[var:::identifier_for_the_marker]```
and expects the user to perform validation on their own.If we put the data type we expect in the
var
field, then it would be very easy to validate against it.For example, for the
C2_BLOCK_TIME
, the current marker is```[var:::c2_block_time]```
. Since thistype(C2_BLOCK_TIME)
should always return<type 'int'>
, it would be fairly simple to instead have the marker be```[int:::c2_block_time]```
and refuse to compile if the provided value does not match the expected data type.This would be something nice to have, and be a fairly low level of effort; but isn't necessarily critical. It COULD be done for the beta release, but as of right now, will not be assigned as a blocker for release.
The text was updated successfully, but these errors were encountered: