DylanVolz commented on issue #2560: TO Go cachegroups, DS regexes, servers, and 
staticdnsentries don't validate their type
URL: https://github.com/apache/trafficcontrol/issues/2560#issuecomment-406083744
 
 
   Right, the interface is the strategy of enforcement in the CRUD framework, 
another option being having the code to check the use_in_table in the validate 
function. Either way the base helper would be of the form `func 
CheckTypeTable(type string, useInTable string, sqlx.Tx)` or similar and would 
need to be called in handlers validating a struct with a type in the type table.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to