Source code for target.configuration_model_hide_reused_validator

from pydantic import BaseModel, validator


def validation(name):
    """Validation function."""
    return name


[docs]class ModelOne(BaseModel): name: str """Name""" normalize_name = validator('name', allow_reuse=True)(validation) """Reused validator class method."""