RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

adds datafield constraints

Open PaulRitter opened this issue 3 years ago • 0 comments

DNM, im opening this pr to run ci bc my poopy laptop cant even run yamllinter

the tech:

  • inherit ConstraintAttribute
  • implement SupportedTypes (which types the datafield is allowed to be)
  • implement Validate (the logic that gets run to determine if the constraint is satisfied)

for a crappy example that i quickly threw together, see MinAttribute.cs

PaulRitter avatar Jul 13 '22 10:07 PaulRitter