Skip to content

Commit

Permalink
[ignore] Modify representation of min and max values for customtype v…
Browse files Browse the repository at this point in the history
…alidator in documentation from scientific notation to integer.
  • Loading branch information
gmicol committed Sep 4, 2024
1 parent db73c86 commit 3be62a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/resources/data_plane_policing_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ All examples for the Data Plane Policing Policy resource can be found in the [ex
- Default: `unspecified`
- Valid Values:
* `unspecified`.
* Or a value in the range of `0` to `5.4975581376e+11`.
* Or a value in the range of `0` to `549755813760`.
* `excessive_burst_unit` (beUnit) - (string) The excessive burst size unit of the Data Plane Policing Policy object. Only applicable for 2R3C policer.
- Default: `unspecified`
- Valid Values: `giga`, `kilo`, `mega`, `msec`, `unspecified`, `usec`.
* `burst` (burst) - (string) The burst size of the Data Plane Policing Policy object.
- Default: `unspecified`
- Valid Values:
* `unspecified`.
* Or a value in the range of `0` to `5.4975581376e+11`.
* Or a value in the range of `0` to `549755813760`.
* `burst_unit` (burstUnit) - (string) The burst size unit of the Data Plane Policing Policy object.
- Default: `unspecified`
- Valid Values: `giga`, `kilo`, `mega`, `msec`, `unspecified`, `usec`.
Expand Down
4 changes: 2 additions & 2 deletions gen/templates/resource.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ All examples for the {{.ResourceNameAsDescription}} resource can be found in the
{{- if and .HasCustomType (hasCustomTypeDocs .PkgName .Name $.Definitions)}}{{$i := 1}}{{$length := len .ValidValues}}
- Valid Values:
*{{ range .ValidValues}} `{{ . }}`{{ if ne $length $i}}{{$i = add $i 1}}, {{- else}}.{{- end}}{{- end}}
* Or a value in the range of `{{index .Validators 0 "min"}}` to `{{index .Validators 0 "max"}}`.
* Or a value in the range of `{{ printf "%.0f" (index .Validators 0 "min") }}` to `{{ printf "%.0f" (index .Validators 0 "max") }}`.
{{- else if .ValidValues }}{{$i := 1}}{{$length := len .ValidValues}}
- Valid Values:{{ range .ValidValues}} `{{ . }}`{{ if ne $length $i}}{{$i = add $i 1}}, {{- else}}.{{- end}}{{- end}}
{{- end}}
Expand Down Expand Up @@ -118,7 +118,7 @@ All examples for the {{.ResourceNameAsDescription}} resource can be found in the
{{- if and .HasCustomType (hasCustomTypeDocs .PkgName .Name $.Definitions)}}{{$i := 1}}{{$length := len .ValidValues}}
- Valid Values:
*{{ range .ValidValues}} `{{ . }}`{{ if ne $length $i}}{{$i = add $i 1}}, {{- else}}.{{- end}}{{- end}}
* Or a value in the range of `{{index .Validators 0 "min"}}` to `{{index .Validators 0 "max"}}`.
* Or a value in the range of `{{ printf "%.0f" (index .Validators 0 "min") }}` to `{{ printf "%.0f" (index .Validators 0 "max") }}`.
{{- else if .ValidValues }}{{$i := 1}}{{$length := len .ValidValues}}
- Valid Values:{{ range .ValidValues}} `{{ . }}`{{ if ne $length $i}}{{$i = add $i 1}}, {{- else}}.{{- end}}{{- end}}
{{- end}}
Expand Down

0 comments on commit 3be62a2

Please sign in to comment.