Skip to content

Commit

Permalink
Fix repeated validation for php_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rauanmayemir committed May 12, 2022
1 parent e68af3c commit 3a00521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/php_yaml/repeated.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package php_yaml
const repeatedConstTpl = `{{ renderConstants (.Elem "" "") }}`

const repeatedTpl = `{{ $f := .Field }}{{ $r := .Rules -}}
{{- if and $r.IgnoreEmpty (not $r.GetIgnoreEmpty) }}
- Valid: ~
{{- end -}}
{{- if or $r.MinItems $r.MaxItems }}
- Count:
{{- if $r.MinItems }}
Expand Down

0 comments on commit 3a00521

Please sign in to comment.