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

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, constr


class Thing(BaseModel):
    type: str
    name: constr(min_length=1)


class Person(Thing):
    type: Optional[str] = 'playground:Person'
    name: Optional[constr(min_length=1)] = None
    age: Optional[int] = None
