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

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, Field


class Extras(BaseModel):
    name: Optional[str] = Field(
        None,
        description='normal key',
        example='example',
        field_comment='comment',
        field_exclude=123,
        field_invalid_key_2='efg',
        invalid_key_1='abc',
        key1=123,
        key2=456,
        readOnly=True,
        register_='hij',
        repr=True,
        schema_='klm',
        x_abc=True,
    )
    age: Optional[int] = Field(None, example=12, examples=[13, 20], writeOnly=True)
