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

from __future__ import annotations

from pydantic import BaseModel, Field, RootModel


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


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