chore: Add Struct required tags and Server Struct Validator (#5371)

Signed-off-by: X-Guardian <32168619+X-Guardian@users.noreply.github.com>
This commit is contained in:
Simon Heather
2025-03-09 11:34:48 +00:00
committed by GitHub
parent 001690e568
commit 4bea4e934a
13 changed files with 122 additions and 105 deletions

View File

@@ -13,10 +13,10 @@ import (
// GithubAppController handles the creation and setup of a new GitHub app
type GithubAppController struct {
AtlantisURL *url.URL
Logger logging.SimpleLogging
AtlantisURL *url.URL `validate:"required"`
Logger logging.SimpleLogging `validate:"required"`
GithubSetupComplete bool
GithubHostname string
GithubHostname string `validate:"required"`
GithubOrg string
}