fix: validate app.json healthcheck path and scheme

This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-23 23:12:58 -04:00
1 parent f57b3455c1
commit db42d0a039
11 files changed
+306 -7

No files matched your search

+14
View File
@@ -35,6 +35,20 @@ func TriggerAppJSONProcessDeployParallelism(appName string, processType string)
return nil
}
// TriggerAppJSONIsValid validates the healthchecks in an extracted app.json file
func TriggerAppJSONIsValid(appName string, appJSONPath string) error {
if !common.FileExists(appJSONPath) {
return nil
}
appJSON, err := ReadAppJSON(appJSONPath)
if err != nil {
return err
}
return validateHealthchecks(appJSON)
}
// TriggerAppJSONGetContent outputs the contents of the app-json file, if any
func TriggerAppJSONGetContent(appName string) error {
if !hasAppJSON(appName) {