Skip to content

Commit 6da781c

Browse files
committed
docs: minor tweaks
1 parent 068cbc5 commit 6da781c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

schema/docs.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ end }}
88
{{ end -}}
99

10-
{{- define "single_attribute" -}}- `#!css {{ .BlockName }}` ({{ if .Optional }}optional {{ end }}{{ .Type }}){{ if .Description}} {{ .Description -}}{{ end }}{{- end -}}
10+
{{- define "single_attribute" -}}- `#!css {{ .BlockName }}` ; `{{ if .Optional }}optional {{ end }}{{ .Type }}`{{ if .Description}}. {{ .Description -}}{{ end }}{{- end -}}
1111

1212
{{- define "description" }}{{ if .Description }}
1313
{{ .Description }}

schema/gitlab.go

+3
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ func mutateHook(b *modelgen.ModelBuild) *modelgen.ModelBuild {
223223
case strings.Contains(fieldType, "time.Time"):
224224
fieldType = "time"
225225

226+
case strings.Contains(fieldType, "bool"):
227+
fieldType = "boolean"
228+
226229
case strings.Contains(fieldType, "time.Duration"):
227230
fieldType = "duration"
228231
}

0 commit comments

Comments
 (0)