From 299f994f324fff7bc1fd89e83bd61dd398e7f3be Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Dec 2024 19:21:25 -0800 Subject: [PATCH] openapi: generate --- pkg/api/oas_validators_gen.go | 18 +++++++++--------- pkg/internal/oas_validators_gen.go | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/api/oas_validators_gen.go b/pkg/api/oas_validators_gen.go index 6b76af3..dd2c9e4 100644 --- a/pkg/api/oas_validators_gen.go +++ b/pkg/api/oas_validators_gen.go @@ -150,9 +150,9 @@ func (s *Script) Validate() error { var failures []validate.FieldError if err := func() error { if err := (validate.String{ - MinLength: 64, - MinLengthSet: true, - MaxLength: 64, + MinLength: 0, + MinLengthSet: false, + MaxLength: 128, MaxLengthSet: true, Email: false, Hostname: false, @@ -219,9 +219,9 @@ func (s *ScriptCreate) Validate() error { var failures []validate.FieldError if err := func() error { if err := (validate.String{ - MinLength: 64, - MinLengthSet: true, - MaxLength: 64, + MinLength: 0, + MinLengthSet: false, + MaxLength: 128, MaxLengthSet: true, Email: false, Hostname: false, @@ -340,9 +340,9 @@ func (s *ScriptUpdate) Validate() error { if value, ok := s.Name.Get(); ok { if err := func() error { if err := (validate.String{ - MinLength: 64, - MinLengthSet: true, - MaxLength: 64, + MinLength: 0, + MinLengthSet: false, + MaxLength: 128, MaxLengthSet: true, Email: false, Hostname: false, diff --git a/pkg/internal/oas_validators_gen.go b/pkg/internal/oas_validators_gen.go index 2e52cc9..973f07b 100644 --- a/pkg/internal/oas_validators_gen.go +++ b/pkg/internal/oas_validators_gen.go @@ -16,9 +16,9 @@ func (s *Script) Validate() error { var failures []validate.FieldError if err := func() error { if err := (validate.String{ - MinLength: 64, - MinLengthSet: true, - MaxLength: 64, + MinLength: 0, + MinLengthSet: false, + MaxLength: 128, MaxLengthSet: true, Email: false, Hostname: false, @@ -85,9 +85,9 @@ func (s *ScriptCreate) Validate() error { var failures []validate.FieldError if err := func() error { if err := (validate.String{ - MinLength: 64, - MinLengthSet: true, - MaxLength: 64, + MinLength: 0, + MinLengthSet: false, + MaxLength: 128, MaxLengthSet: true, Email: false, Hostname: false,