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

from __future__ import annotations

from pydantic import BaseModel, ConfigDict, RootModel, constr


class ElegantName(RootModel[constr(min_length=3)]):
    root: constr(min_length=3)


class Person(BaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    name: ElegantName
