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

from __future__ import annotations

from pydantic import BaseModel, conint, constr


class Parent1(BaseModel):
    name: constr(min_length=1) | None = None


class Parent2(BaseModel):
    name: constr(min_length=5) | None = None
    age: conint(ge=0) | None = None


class Child(BaseModel):
    name: constr(min_length=5, max_length=100) | None = None
    age: conint(ge=0, le=150) | None = None
