# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from pydantic import BaseModel, TypeAdapter


class PetAttributeValueColor(BaseModel):
    color: str


class PetAttributeValueWeight_kg(BaseModel):
    weight_kg: float


class PetAttributeValueVaccinated(BaseModel):
    vaccinated: bool


PetAttributeValue = PetAttributeValueColor | PetAttributeValueWeight_kg | PetAttributeValueVaccinated


_PetAttributeValue_ADAPTER = TypeAdapter(PetAttributeValue)


def validate_pet_attribute_value(value: object) -> PetAttributeValue:
    return _PetAttributeValue_ADAPTER.validate_python(value)
