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

from __future__ import annotations

from typing import List

from pydantic import BaseModel, Field


class Number(BaseModel):
    __root__: str = Field(
        ...,
        description='Just a number',
        examples=['1', '5464446', '684572369854259'],
        regex='^\\d{1,15}$',
    )


class TestSchema(BaseModel):
    numbers: List[Number] = Field(..., description='A list of numbers')
