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

package models

import (
	"context"
	"encoding/json"

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

// PathenumSnakeCaseForImport Ignoring lint warnings as this enum type exist to validate proper functionality
// for projects that don't follow these lint rules.
// buf:lint:ignore ENUM_PASCAL_CASE
//
// - value_x: buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
//   - value_y: buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
//
// swagger:model pathenumSnake_case_for_import
type PathenumSnakeCaseForImport string

func NewPathenumSnakeCaseForImport(value PathenumSnakeCaseForImport) *PathenumSnakeCaseForImport {
	return &value
}

// Pointer returns a pointer to a freshly-allocated PathenumSnakeCaseForImport.
func (m PathenumSnakeCaseForImport) Pointer() *PathenumSnakeCaseForImport {
	return &m
}

const (

	// PathenumSnakeCaseForImportValuex captures enum value "value_x"
	PathenumSnakeCaseForImportValuex PathenumSnakeCaseForImport = "value_x"

	// PathenumSnakeCaseForImportValuey captures enum value "value_y"
	PathenumSnakeCaseForImportValuey PathenumSnakeCaseForImport = "value_y"
)

// for schema
var pathenumSnakeCaseForImportEnum []any

func init() {
	var res []PathenumSnakeCaseForImport
	if err := json.Unmarshal([]byte(`["value_x","value_y"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		pathenumSnakeCaseForImportEnum = append(pathenumSnakeCaseForImportEnum, v)
	}
}

func (m PathenumSnakeCaseForImport) validatePathenumSnakeCaseForImportEnum(path, location string, value PathenumSnakeCaseForImport) error {
	if err := validate.EnumCase(path, location, value, pathenumSnakeCaseForImportEnum, true); err != nil {
		return err
	}
	return nil
}

// Validate validates this pathenum snake case for import
func (m PathenumSnakeCaseForImport) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validatePathenumSnakeCaseForImportEnum("", "body", m); err != nil {
		return err
	}

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

// ContextValidate validates this pathenum snake case for import based on context it is used
func (m PathenumSnakeCaseForImport) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
