feat(contact): Improve Contact information with name, mail and URL
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -14,7 +14,13 @@ import (
|
||||
type apiYamlTemplate struct {
|
||||
ProjectDescription string
|
||||
ProjectName string
|
||||
ProjectOwner string
|
||||
ProjectContact apiYamlContact
|
||||
}
|
||||
|
||||
type apiYamlContact struct {
|
||||
Email string
|
||||
Name string
|
||||
URL string
|
||||
}
|
||||
|
||||
// generateAPIYamls will generate a readme based on the given config.
|
||||
@ -45,7 +51,11 @@ func (a APIType) generateAPIYamls(path string, config *models.Config) error {
|
||||
data := apiYamlTemplate{
|
||||
ProjectDescription: config.ProjectDescription,
|
||||
ProjectName: config.ProjectName,
|
||||
ProjectOwner: config.ProjectOwner,
|
||||
ProjectContact: apiYamlContact{
|
||||
Email: config.ProjectContact.Email,
|
||||
Name: config.ProjectContact.Name,
|
||||
URL: config.ProjectContact.URL,
|
||||
},
|
||||
}
|
||||
|
||||
for _, templateFile := range templateFileList {
|
||||
|
Reference in New Issue
Block a user