Skip to content

Add builder value validations #28

@Und3rf10w

Description

@Und3rf10w

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 this type(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    base logicIssues that affect how the base logic of the projectbuilderIssues related to the builder functionalityenhancementIssues related to a proposed enchancement to the projectfeature requesthelp wanted

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions