func unmarshalCronWorkflows(wfBytes []byte, strict bool) []wfv1.CronWorkflow {
	var cronWf wfv1.CronWorkflow
	var jsonOpts []json.JSONOpt
	if strict {
		jsonOpts = append(jsonOpts, json.DisallowUnknownFields)
	}
	err := json.Unmarshal(wfBytes, &cronWf, jsonOpts...)
	if err == nil {
		return []wfv1.CronWorkflow{cronWf}
	}
	yamlWfs, err := common.SplitCronWorkflowYAMLFile(wfBytes, strict)
	if err == nil {
		return yamlWfs
	}
	log.Fatalf("Failed to parse workflow template: %v", err)
	return nil
}
// unmarshalCronWorkflows unmarshals the input bytes as either json or yaml
unmarshalCronWorkflows unmarshals the input bytes as either json or yaml
// unmarshalCronWorkflows unmarshals the input bytes as either json or yaml
func unmarshalCronWorkflows(wfBytes []byte, strict bool) []wfv1.CronWorkflow {
	var cronWf wfv1.CronWorkflow
	var jsonOpts []json.JSONOpt
	if strict {
		jsonOpts = append(jsonOpts, json.DisallowUnknownFields)
	}
	err := json.Unmarshal(wfBytes, &cronWf, jsonOpts...)
	if err == nil {
		return []wfv1.CronWorkflow{cronWf}
	}
	yamlWfs, err := common.SplitCronWorkflowYAMLFile(wfBytes, strict)
	if err == nil {
		return yamlWfs
	}
	log.Fatalf("Failed to parse workflow template: %v", err)
	return nil
}
func unmarshalCronWorkflows ( wfBytes [ ] byte , strict bool ) [ ] wfv1 . CronWorkflow { var cronWf wfv1 . CronWorkflow var jsonOpts [ ] json . JSONOpt if strict { jsonOpts = append ( jsonOpts , json . DisallowUnknownFields ) } err := json . Unmarshal ( wfBytes , & cronWf , jsonOpts ... ) if err == nil { return [ ] wfv1 . CronWorkflow { cronWf } } yamlWfs , err := common . SplitCronWorkflowYAMLFile ( wfBytes , strict ) if err == nil { return yamlWfs } log . Fatalf ( " " , err ) return nil }
unmarshalCronWorkflows unmarshals the input bytes as either json or yaml
unmarshalCronWorkflows unmarshals the input bytes as either json or yaml