# generated by datamodel-codegen:
#   filename:  json_pointer_array.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from pydantic import BaseModel, EmailStr, RootModel


class Email(BaseModel):
    email: EmailStr


class Error(BaseModel):
    code: str


class Model1(BaseModel):
    emails: list[Email]


class Model2(BaseModel):
    errors: list[Error]


class Model(RootModel[Model1 | Model2]):
    root: Model1 | Model2
