openapi: generate
This commit is contained in:
parent
49db6e35ce
commit
299f994f32
@ -150,9 +150,9 @@ func (s *Script) Validate() error {
|
|||||||
var failures []validate.FieldError
|
var failures []validate.FieldError
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
if err := (validate.String{
|
if err := (validate.String{
|
||||||
MinLength: 64,
|
MinLength: 0,
|
||||||
MinLengthSet: true,
|
MinLengthSet: false,
|
||||||
MaxLength: 64,
|
MaxLength: 128,
|
||||||
MaxLengthSet: true,
|
MaxLengthSet: true,
|
||||||
Email: false,
|
Email: false,
|
||||||
Hostname: false,
|
Hostname: false,
|
||||||
@ -219,9 +219,9 @@ func (s *ScriptCreate) Validate() error {
|
|||||||
var failures []validate.FieldError
|
var failures []validate.FieldError
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
if err := (validate.String{
|
if err := (validate.String{
|
||||||
MinLength: 64,
|
MinLength: 0,
|
||||||
MinLengthSet: true,
|
MinLengthSet: false,
|
||||||
MaxLength: 64,
|
MaxLength: 128,
|
||||||
MaxLengthSet: true,
|
MaxLengthSet: true,
|
||||||
Email: false,
|
Email: false,
|
||||||
Hostname: false,
|
Hostname: false,
|
||||||
@ -340,9 +340,9 @@ func (s *ScriptUpdate) Validate() error {
|
|||||||
if value, ok := s.Name.Get(); ok {
|
if value, ok := s.Name.Get(); ok {
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
if err := (validate.String{
|
if err := (validate.String{
|
||||||
MinLength: 64,
|
MinLength: 0,
|
||||||
MinLengthSet: true,
|
MinLengthSet: false,
|
||||||
MaxLength: 64,
|
MaxLength: 128,
|
||||||
MaxLengthSet: true,
|
MaxLengthSet: true,
|
||||||
Email: false,
|
Email: false,
|
||||||
Hostname: false,
|
Hostname: false,
|
||||||
|
@ -16,9 +16,9 @@ func (s *Script) Validate() error {
|
|||||||
var failures []validate.FieldError
|
var failures []validate.FieldError
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
if err := (validate.String{
|
if err := (validate.String{
|
||||||
MinLength: 64,
|
MinLength: 0,
|
||||||
MinLengthSet: true,
|
MinLengthSet: false,
|
||||||
MaxLength: 64,
|
MaxLength: 128,
|
||||||
MaxLengthSet: true,
|
MaxLengthSet: true,
|
||||||
Email: false,
|
Email: false,
|
||||||
Hostname: false,
|
Hostname: false,
|
||||||
@ -85,9 +85,9 @@ func (s *ScriptCreate) Validate() error {
|
|||||||
var failures []validate.FieldError
|
var failures []validate.FieldError
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
if err := (validate.String{
|
if err := (validate.String{
|
||||||
MinLength: 64,
|
MinLength: 0,
|
||||||
MinLengthSet: true,
|
MinLengthSet: false,
|
||||||
MaxLength: 64,
|
MaxLength: 128,
|
||||||
MaxLengthSet: true,
|
MaxLengthSet: true,
|
||||||
Email: false,
|
Email: false,
|
||||||
Hostname: false,
|
Hostname: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user