diff --git a/resources/markdown.tmpl b/resources/markdown.tmpl index 740cea15..20bd022a 100644 --- a/resources/markdown.tmpl +++ b/resources/markdown.tmpl @@ -45,6 +45,19 @@ {{end}} {{end}} +{{$message := .}} +{{- range .FieldOptions}} +{{$option := .}} +{{if eq . "validator.field" "validate.rules" }} +#### Validated Fields +| Field | Validations | +| ----- | ----------- | +{{range $message.FieldsWithOption . -}} + | {{.Name}} | {{range (.Option $option).Rules}}• {{.Name}}: `{{.Value}}`
{{end}} | +{{end}} +{{end}} +{{end}} + {{if .HasExtensions}} | Extension | Type | Base | Number | Description | | --------- | ---- | ---- | ------ | ----------- |