| 61 | } |
| 62 | |
| 63 | func makeStringValValidation(v *StringPtrValidation) *StringValidation { |
| 64 | return &StringValidation{ |
| 65 | AllowEmpty: v.AllowEmpty, |
| 66 | AllowedValues: v.AllowedValues, |
| 67 | HiddenAllowedValues: v.HiddenAllowedValues, |
| 68 | DisallowedValues: v.DisallowedValues, |
| 69 | Prefix: v.Prefix, |
| 70 | Suffix: v.Suffix, |
| 71 | InvalidPrefixes: v.InvalidPrefixes, |
| 72 | InvalidSuffixes: v.InvalidSuffixes, |
| 73 | AllowedPrefixes: v.AllowedPrefixes, |
| 74 | AllowedSuffixes: v.AllowedSuffixes, |
| 75 | MaxLength: v.MaxLength, |
| 76 | MinLength: v.MinLength, |
| 77 | DisallowLeadingWhitespace: v.DisallowLeadingWhitespace, |
| 78 | DisallowTrailingWhitespace: v.DisallowTrailingWhitespace, |
| 79 | AlphaNumericDashDotUnderscoreOrEmpty: v.AlphaNumericDashDotUnderscoreOrEmpty, |
| 80 | AlphaNumericDashDotUnderscore: v.AlphaNumericDashDotUnderscore, |
| 81 | AlphaNumericDashUnderscore: v.AlphaNumericDashUnderscore, |
| 82 | AlphaNumericDotUnderscore: v.AlphaNumericDotUnderscore, |
| 83 | AWSTag: v.AWSTag, |
| 84 | DNS1035: v.DNS1035, |
| 85 | DNS1123: v.DNS1123, |
| 86 | CastInt: v.CastInt, |
| 87 | CastNumeric: v.CastNumeric, |
| 88 | CastScalar: v.CastScalar, |
| 89 | AllowCortexResources: v.AllowCortexResources, |
| 90 | RequireCortexResources: v.RequireCortexResources, |
| 91 | DockerImage: v.DockerImage, |
| 92 | DockerImageOrEmpty: v.DockerImageOrEmpty, |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func StringPtr(inter interface{}, v *StringPtrValidation) (*string, error) { |
| 97 | if inter == nil { |