feat(contact): Improve Contact information with name, mail and URL
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-08-27 22:00:16 +00:00
parent 05ecb05132
commit 9107f0d36e
4 changed files with 38 additions and 11 deletions

View File

@ -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 {