// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"
	"strconv"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)

// FreeAddressesRequest free addresses request
//
// swagger:model free_addresses_request
type FreeAddressesRequest []string

// Validate validates this free addresses request
func (m FreeAddressesRequest) Validate(formats strfmt.Registry) error {
	var res []error

	for i := 0; i < len(m); i++ {

		if err := validate.Pattern(strconv.Itoa(i), "body", m[i], `^([0-9]{1,3}\.){3}[0-9]{1,3}\/[0-9]|[1-2][0-9]|3[0-2]?$`); err != nil {
			return err
		}

	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

// ContextValidate validates this free addresses request based on context it is used
func (m FreeAddressesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
