mhoppa commented on a change in pull request #3935: Rewrite POST servercheck to 
GO
URL: https://github.com/apache/trafficcontrol/pull/3935#discussion_r328678770
 
 

 ##########
 File path: lib/go-tc/serverchecks.go
 ##########
 @@ -108,37 +107,53 @@ type Servercheck struct {
 }
 
 // A Single Servercheck struct for Update and Create to depict what changed
-// swagger:model ServercheckPost
 type ServercheckPost struct {
 
        // The Servercheck data to submit
        //
        // Name of the server check type
        //
        // required: true
-       Name string `json:"servercheck_short_name" db:"servercheck_short_name"`
+       Name string `json:"servercheck_short_name"`
 
        // ID of the server
        //
-       // required: true
-       ID int `json:"id" db:"id"`
+       ID int `json:"id"`
 
        // Name of the server
-       HostName string `json:"name" db:"name"`
 
 Review comment:
   Ahh the reason why I didnt was because each one of these fields map to 
different fields in different tables and even that value maps to a different 
column name in the servercheck table based on the servercheck_short_name

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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