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

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel, Field, RootModel


class ACHClass(RootModel[Literal['ccd']]):
    root: Literal['ccd'] = Field(..., title='ACHClass')


class Foo(BaseModel):
    ach_class: ACHClass | None = None


class Bar(BaseModel):
    ach_class: ACHClass | None = None
