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

from __future__ import annotations

from typing import List, Union

from pydantic import BaseModel, EmailStr


class Email(BaseModel):
    email: EmailStr


class Error(BaseModel):
    code: str


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


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


class Model(BaseModel):
    __root__: Union[Model1, Model2]
