models/route.go
func (m *Route) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateFormat(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateHeaders(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateType(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *Route) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateFormat(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateHeaders(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateType(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
/* polymorph Route config false */
/* polymorph Route format false */
/* polymorph Route headers false */
/* polymorph Route idle_timeout false */
/* polymorph Route image false */
/* polymorph Route jwt_key false */
/* polymorph Route max_concurrency false */
/* polymorph Route memory false */
/* polymorph Route path false */
/* polymorph Route timeout false */
/* polymorph Route type false */
// Validate validates this route